commore  1.0.6-SNAPSHOT
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Type.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2006-2007 Raphael David / CANTOR
3 //
4 
5 
6 #ifndef CMR_TYPE_INCLUDED
7 #define CMR_TYPE_INCLUDED
8 
9 #include <stddef.h>
10 
14 namespace commore
15 {
19  template< class T> class DefaultListAllocator;
20  template< class T> class CmrListAllocator;
21  template< class T> class CmrScalarListAllocator;
22  template<class T, class A = DefaultListAllocator<T> > class List;
23  template<class T, class A = DefaultListAllocator<T> > class Array;
24 
28  class AString;
29  class String;
30  class StringBuffer;
31  class Blob;
32  class TimePeriod;
33  class TimeDate;
34  class Tuple;
35  class Symbol;
36  typedef bool Bool;
37  typedef int Int;
38  #ifdef __MINGW32__
39  typedef long long Long;
40  #elif defined(WIN32)
41  typedef __int64 Long;
42  #else
43  typedef long long Long;
44  #endif
45  typedef float Float;
46  typedef double Double;
59 
60 
64  typedef unsigned char Byte;
65  typedef char AChar;
66  typedef wchar_t Char;
67  typedef unsigned int UInt;
68  typedef short Short;
69  typedef unsigned short UShort;
70 #ifdef __MINGW32__
71  typedef unsigned long long ULong;
72 #elif defined(WIN32)
73  typedef unsigned __int64 ULong;
74 #else
75  typedef unsigned long long ULong;
76 #endif
77  typedef void* Pointer;
84 
94 
102 
107 
112 
116  class Path;
117  class Directory;
118  class CommBuffer;
119  class IBStream;
120  class OBStream;
121  class OBStreamFormat;
122  class Log;
123  class XmlParser;
124  class Dummy;
127 
131  enum Types
132  {
133  T_ANY = 0,
135 
136  T_BOOL = 2,
137  T_INT = 3,
138  T_LONG = 4,
139  T_FLOAT = 5,
140  T_DOUBLE = 6,
141 
143  T_STRING = 8,
144  T_BLOB = 9,
151 
152  T_TUPLE = 16,
153 
159 
170 
171  T_TABLE = 32,
173 
181 
184 
191 
193 
195  };
196 
197  const unsigned int npos = 0xFFFFFFFF;
198 }
199 
200 #endif
Array< AString, CmrListAllocator< AString > > ArrayAString
Definition: Type.h:78
List< Double, CmrScalarListAllocator< Double > > ListDouble
Definition: Type.h:53
Definition: Directory.h:58
Array< UInt, CmrScalarListAllocator< UInt > > ArrayUInt
Definition: Type.h:87
List< Blob, CmrListAllocator< Blob > > ListBlob
Definition: Type.h:56
Definition: Type.h:189
Definition: Type.h:163
Definition: Type.h:156
Array< TimePeriod, CmrListAllocator< TimePeriod > > ArrayTimePeriod
Definition: Type.h:97
Definition: Type.h:143
Definition: Parser.h:229
bool Bool
Definition: Type.h:35
Definition: Type.h:188
Definition: Type.h:194
List< Directory, CmrListAllocator< Directory > > ListDirectory
Definition: Type.h:126
Array< TimeDate, CmrListAllocator< TimeDate > > ArrayTimeDate
Definition: Type.h:98
Definition: List.h:23
Array< Float, CmrScalarListAllocator< Float > > ArrayFloat
Definition: Type.h:92
Definition: Type.h:175
Definition: Type.h:187
Definition: Type.h:139
Array< ULong, CmrScalarListAllocator< ULong > > ArrayULong
Definition: Type.h:91
Definition: Type.h:192
Definition: IOBStream.h:126
List< ArrayInt, CmrListAllocator< ArrayInt > > ListArrayInt
Definition: Type.h:108
Definition: Type.h:144
List< String, CmrListAllocator< String > > ListString
Definition: Type.h:48
double Double
Definition: Type.h:46
Definition: Symbol.h:18
List< ArrayLong, CmrListAllocator< ArrayLong > > ListArrayLong
Definition: Type.h:109
Array< Double, CmrScalarListAllocator< Double > > ArrayDouble
Definition: Type.h:93
char AChar
Definition: Type.h:65
Definition: Type.h:161
Definition: Type.h:190
List< ULong, CmrScalarListAllocator< ULong > > ListULong
Definition: Type.h:83
Definition: Type.h:164
Definition: Type.h:137
Array< UShort, CmrScalarListAllocator< UShort > > ArrayUShort
Definition: Type.h:89
List< Float, CmrScalarListAllocator< Float > > ListFloat
Definition: Type.h:52
List< TimeDate, CmrListAllocator< TimeDate > > ListTimeDate
Definition: Type.h:55
Definition: Type.h:155
Definition: Error.h:35
List< Short, CmrScalarListAllocator< Short > > ListShort
Definition: Type.h:81
List< AString, CmrListAllocator< AString > > ListAString
Definition: Type.h:47
Definition: Type.h:172
List< ArrayDouble, CmrListAllocator< ArrayDouble > > ListArrayDouble
Definition: Type.h:111
Array< Long, CmrScalarListAllocator< Long > > ArrayLong
Definition: Type.h:90
Definition: Type.h:157
List< Bool, CmrScalarListAllocator< Bool > > ListBool
Definition: Type.h:50
unsigned int UInt
Definition: Type.h:67
Definition: Type.h:148
Definition: Type.h:145
Definition: Type.h:182
Definition: Type.h:185
Definition: Type.h:136
List< UShort, CmrScalarListAllocator< UShort > > ListUShort
Definition: Type.h:82
Definition: Type.h:176
Definition: Type.h:174
List< Symbol, CmrListAllocator< Symbol > > ListSymbol
Definition: Type.h:58
Definition: Type.h:149
Definition: Type.h:165
Definition: Path.h:19
Definition: Type.h:178
Definition: Type.h:158
List< UInt, CmrScalarListAllocator< UInt > > ListUInt
Definition: Type.h:80
Definition: Type.h:168
Definition: Type.h:169
Definition: CommBuffer.h:28
int Int
Definition: Type.h:37
const unsigned int npos
Definition: Type.h:197
Definition: Type.h:134
Definition: Array.h:21
Definition: Type.h:154
List< StringBuffer, CmrListAllocator< StringBuffer > > ListStringBuffer
Definition: Type.h:95
Definition: Type.h:162
unsigned short UShort
Definition: Type.h:69
unsigned long long ULong
Definition: Type.h:75
Array< Bool, CmrScalarListAllocator< Bool > > ArrayBool
Definition: Type.h:86
Definition: Type.h:146
Definition: Type.h:177
Definition: Type.h:142
List< Int, CmrScalarListAllocator< Int > > ListInt
Definition: Type.h:49
Definition: Type.h:186
Array< Tuple, CmrListAllocator< Tuple > > ArrayTuple
Definition: Type.h:100
Definition: Type.h:167
Definition: Type.h:152
Definition: Type.h:166
List< Path, CmrListAllocator< Path > > ListPath
Definition: Type.h:124
Definition: Type.h:160
short Short
Definition: Type.h:68
unsigned char Byte
Definition: Type.h:64
Definition: Type.h:183
Definition: Type.h:138
Array< Blob, CmrListAllocator< Blob > > ArrayBlob
Definition: Type.h:99
float Float
Definition: Type.h:45
Array< Symbol, CmrListAllocator< Symbol > > ArraySymbol
Definition: Type.h:101
List< Tuple, CmrListAllocator< Tuple > > ListTuple
Definition: Type.h:57
Definition: IOBStream.h:166
Array< Short, CmrScalarListAllocator< Short > > ArrayShort
Definition: Type.h:88
long long Long
Definition: Type.h:43
List< ArrayFloat, CmrListAllocator< ArrayFloat > > ListArrayFloat
Definition: Type.h:110
Array< Int, CmrScalarListAllocator< Int > > ArrayInt
Definition: Type.h:85
List< Long, CmrScalarListAllocator< Long > > ListLong
Definition: Type.h:51
Definition: IOBStream.h:29
Definition: Type.h:140
Definition: Type.h:147
Definition: Type.h:171
Array< StringBuffer, CmrListAllocator< StringBuffer > > ArrayStringBuffer
Definition: Type.h:96
Definition: Type.h:179
void * Pointer
Definition: Type.h:77
Definition: Type.h:180
List< TimePeriod, CmrListAllocator< TimePeriod > > ListTimePeriod
Definition: Type.h:54
Definition: Type.h:150
Definition: Type.h:133
wchar_t Char
Definition: Type.h:66
Types
Definition: Type.h:131
Array< String, CmrListAllocator< String > > ArrayString
Definition: Type.h:79