/*************************************************************** * StreamDevice Support * * * * (C) 1999 Dirk Zimoch (zimoch@delta.uni-dortmund.de) * * (C) 2005 Dirk Zimoch (dirk.zimoch@psi.ch) * * * * This header defines the format stucture used to interface * * format converters and record interfaces to StreamDevice * * Please refer to the HTML files in ../docs/ for a detailed * * documentation. * * * * If you do any changes in this file, you are not allowed to * * redistribute it any more. If there is a bug or a missing * * feature, send me an email and/or your patch. If I accept * * your changes, they will go to the next release. * * * * DISCLAIMER: If this software breaks something or harms * * someone, it's your problem. * * * ***************************************************************/ #ifndef StreamFormat_h #define StreamFormat_h typedef enum { left_flag = 0x01, sign_flag = 0x02, space_flag = 0x04, alt_flag = 0x08, zero_flag = 0x10, skip_flag = 0x20, default_flag = 0x40, compare_flag = 0x80, fix_width_flag = 0x100 } StreamFormatFlag; typedef enum { unsigned_format = 1, signed_format, enum_format, double_format, string_format, pseudo_format } StreamFormatType; extern const char* StreamFormatTypeStr[]; typedef struct StreamFormat { char conv; StreamFormatType type; unsigned short flags; long prec; unsigned long width; unsigned long infolen; const char* info; } StreamFormat; #endif