00001
00011 #include <string>
00012 #include <vector>
00013 #include <iostream>
00014 #include <map>
00015 #include <exception>
00016 #include <time.h>
00017
00019 namespace stactiverecord {
00025 enum coltype { NONE, INTEGER, STRING, RECORD, DATETIME, ALL };
00026 enum wheretype { STARTSWITH, ENDSWITH, CONTAINS, GREATERTHAN, LESSTHAN, BETWEEN, EQUALS, OBJECTRELATION, IN, ISNULL };
00027
00028
00029 template <class T> class Record;
00030 };
00031
00032 #include "config.h"
00033 #include "datetime.h"
00034 #include "where.h"
00035 #include "utils.h"
00036 #include "types.h"
00037 #include "cud_property_register.h"
00038 #include "exception.h"
00039 #include "query.h"
00040 #include "storage.h"
00041 #include "record.h"
00042
00043 #define VALUE_MAX_SIZE 255
00044 #define VALUE_MAX_SIZE_S "255"
00045
00046 #define SAR_INIT() static string classname;
00047 #define SAR_SET_CLASSNAME(c, n) string c::classname = n;