Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef StreamFormat_h
00023 #define StreamFormat_h
00024
00025 typedef enum {
00026 left_flag = 0x01,
00027 sign_flag = 0x02,
00028 space_flag = 0x04,
00029 alt_flag = 0x08,
00030 zero_flag = 0x10,
00031 skip_flag = 0x20,
00032 default_flag = 0x40,
00033 compare_flag = 0x80
00034 } StreamFormatFlag;
00035
00036 typedef enum {
00037 long_format = 1,
00038 enum_format = 2,
00039 double_format = 3,
00040 string_format = 4,
00041 pseudo_format = 5
00042 } StreamFormatType;
00043
00044 extern const char* StreamFormatTypeStr[];
00045
00046 typedef struct StreamFormat
00047 {
00048 char conv;
00049 StreamFormatType type;
00050 unsigned char flags;
00051 short prec;
00052 unsigned short width;
00053 unsigned short infolen;
00054 const char* info;
00055 } StreamFormat;
00056
00057 #endif