#include <lStr.h>
Include dependency graph for preproc.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | CLASS(X) |
#define | ABSTRACT_CLASS(X) |
#define | PARENTS(X) public: static const char* ParentClassNames() {return X;} |
#define | FROM(X) public: static const char *From() {return X;} |
#define | WHERE(X) public: static const char *Where() {return X;} |
#define | GROUP_BY(X) public: static const char *GroupBy() {return X;} |
#define | HAVING(X) public: static const char *Having() {return X;} |
#define | ORDER_BY(X) public: static const char *OrderBy() {return X;} |
#define | CLASS_PROTOTYPE(T) |
#define | ABSTRACT_CLASS_PROTOTYPE(T) extern Proto<T> T##_class |
#define | PROTOTYPE(T) Proto<T> T##_class; |
#define | TYPE_INT 'i' |
#define | TYPE_UNSIGNED 'u' |
#define | TYPE_FLOAT 'f' |
#define | TYPE_CHAR 'c' |
#define | TYPE_STRING 's' |
#define | TYPE_PTR 'p' |
#define | TYPE_UNKNOWN '?' |
#define | dbMember(T, X) |
#define | dbString(X) |
#define | dbPtr(T, X) |
#define | dbShort(X) dbMember(short,X) |
#define | dbUShort(X) dbMember(unsigned short,X) |
#define | dbInt(X) dbMember(int,X) |
#define | dbUInt(X) dbMember(unsigned int,X) |
#define | dbLong(X) dbMember(long,X) |
#define | dbULong(X) dbMember(unsigned long,X) |
#define | dbFloat(X) dbMember(float,X) |
#define | dbDouble(X) dbMember(double,X) |
#define | dbChar(X) dbMember(char,X) |
#define | dbBool(X) dbMember(bool,X) |
#define | dbMemberRO(T, X) |
#define | dbStringRO(X) |
#define | dbPtrRO(T, X) |
#define | dbShortRO(X) dbMemberRO(short,X) |
#define | dbUShortRO(X) dbMemberRO(unsigned short,X) |
#define | dbIntRO(X) dbMemberRO(int,X) |
#define | dbUIntRO(X) dbMemberRO(unsigned int,X) |
#define | dbLongRO(X) dbMemberRO(long,X) |
#define | dbULongRO(X) dbMemberRO(unsigned long,X) |
#define | dbFloatRO(X) dbMemberRO(float,X) |
#define | dbDoubleRO(X) dbMemberRO(double,X) |
#define | dbCharRO(X) dbMemberRO(char,X) |
#define | dbBoolRO(X) dbMemberRO(bool,X) |
#define | MAPKEY_BEGIN |
#define | MAPKEY_END |
#define | MAP_BEGIN |
#define | MAP_END |
#define | mapMember(A, M, C, T, N) if (!i--) {attr=A; mem=(unsigned char Object::*)&(_THiS_CLaSS_::M); col=C; type=T; len=N; rw=true; return;}; |
#define | mapString(A, C, N) mapMember(#A,_##A,C,TYPE_STRING,N) |
#define | mapPtr(A, C) mapMember(#A,_##A,C,TYPE_PTR,sizeof(long int)) |
#define | mapShort(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(short int)) |
#define | mapUShort(A, C) mapMember(#A,_##A,C,TYPE_UNSIGNED,sizeof(unsigned short)) |
#define | mapInt(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(int)) |
#define | mapUInt(A, C) mapMember(#A,_##A,C,TYPE_UNSIGNED,sizeof(unsigned int)) |
#define | mapLong(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(long int)) |
#define | mapULong(A, C) mapMember(#A,_##A,C,TYPE_UNSIGNED,sizeof(unsigned long)) |
#define | mapFloat(A, C) mapMember(#A,_##A,C,TYPE_FLOAT,sizeof(float)) |
#define | mapDouble(A, C) mapMember(#A,_##A,C,TYPE_FLOAT,sizeof(double)) |
#define | mapChar(A, C) mapMember(#A,_##A,C,TYPE_CHAR,sizeof(char)) |
#define | mapBool(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(bool)) |
#define | mapMemberRO(A, M, C, T, N) if (!i--) {attr=A; mem=(unsigned char Object::*)&(_THiS_CLaSS_::M); col=C; type=T; len=N; rw=false; return;}; |
#define | mapStringRO(A, C, N) mapMember(#A,_##A,C,TYPE_STRING,N) |
#define | mapPtrRO(A, C) mapMember(#A,_##A,C,TYPE_PTR,sizeof(long int)) |
#define | mapShortRO(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(short int)) |
#define | mapUShortRO(A, C) mapMember(#A,_##A,C,TYPE_UNSIGNED,sizeof(unsigned short)) |
#define | mapIntRO(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(int)) |
#define | mapUIntRO(A, C) mapMember(#A,_##A,C,TYPE_UNSIGNED,sizeof(unsigned int)) |
#define | mapLongRO(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(long int)) |
#define | mapULongRO(A, C) mapMember(#A,_##A,C,TYPE_UNSIGNED,sizeof(unsigned long)) |
#define | mapFloatRO(A, C) mapMember(#A,_##A,C,TYPE_FLOAT,sizeof(float)) |
#define | mapDoubleRO(A, C) mapMember(#A,_##A,C,TYPE_FLOAT,sizeof(double)) |
#define | mapCharRO(A, C) mapMember(#A,_##A,C,TYPE_CHAR,sizeof(char)) |
#define | mapBoolRO(A, C) mapMember(#A,_##A,C,TYPE_INT,sizeof(bool)) |
|
Value: friend Proto<X>; \ protected: typedef X _THiS_CLaSS_; \ public: static const char *ClassName() {return #X;}; \ protected: static Object *_New() {return NULL;}; \ public: Ref<X> operator &() \ { \ if (IsPersistent()) \ return Ref<X>(Connection(),Prototype(),_KeyValues(),_Strategies); \ else \ return Ref<X>(this); \ }; \ public: virtual class ProtoBase *Prototype() const = 0 |
|
|
|
Value: friend Proto<X>; \ protected: typedef X _THiS_CLaSS_; \ public: static const char *ClassName() {return #X;}; \ protected: static Object *_New() {return new X;}; \ public: Ref<X> operator &() \ { \ if (IsPersistent()) \ return Ref<X>(Connection(),Prototype(),_KeyValues(),_Strategies); \ else \ return Ref<X>(this); \ }; \ public: virtual class ProtoBase *Prototype() const |
|
Value: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: protected: T _##X; \ public: T X() const {return _##X;}; \ public: void X(const T X##_) {_##X=X##_; MarkAsDirty();} |
|
Value: protected: T _##X; \ public: T X() const {return _##X;} |
|
Value: protected: long int _##X; \ public: Ref<T> X() const \ { \ if (IsPersistent()) \ if (_##X>0) \ { \ Ref<T> t(Connection(),_##X); \ return _Virtualise(t); \ } \ else \ return DBNULL; \ else \ return DBNULL; \ } \ public: void X(const Ref<T> &X##_) \ { \ if (X##_==DBNULL) _##X=0; else sscanf(_SelectKeyValues(X##_),"%li",&_##X); \ MarkAsDirty(); \ } |
|
Value: protected: long int _##X; \ public: Ref<T> X() const \ { \ return IsPersistent() ? _##X>0 ? _Virtualise(Ref<T>(Connection(),_##X,Class[#T])) : DBNULL : DBNULL; \ } |
|
|
|
|
|
Value: protected: char * _##X; \ public: char * X() const {return _##X;}; \ public: void X(const char * X##_) {StrCpy(_##X,X##_); MarkAsDirty();} |
|
Value: protected: char * _##X; \ public: char * X() const {return _##X;} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: public: static void Map(int i, const char *&attr, unsigned char Object::*&mem, const char *&col, char &type, unsigned int &len, bool &rw) { \ if (i<0) {attr=NULL; col=NULL; type=TYPE_UNKNOWN; len=0; rw=false; return;}; |
|
Value: attr=NULL; col=NULL; type=TYPE_UNKNOWN; len=0; rw=false; \ } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: public: static void MapKey(int i, const char *&attr, unsigned char Object::*&mem, const char *&col, char &type, unsigned int &len, bool &rw) { \ rw = true; \ if (i<0) {attr=NULL; col=NULL; type=TYPE_UNKNOWN; len=0; return;}; |
|
Value: attr=NULL; col=NULL; type=TYPE_UNKNOWN; len=0; \ } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 70 of file preproc.h. Referenced by ProtoBase::_ExportAttributes(), ProtoBase::_ExportKeyAttributes(), ProtoBase::_ImportAttributes(), ProtoBase::_InitialiseSqlVar(), ProtoBase::_KeyValues(), and OracleDatabase::ColumnTypeDDL(). |
|
Definition at line 69 of file preproc.h. Referenced by ProtoBase::_ExportAttributes(), ProtoBase::_ExportKeyAttributes(), ProtoBase::_ImportAttributes(), ProtoBase::_InitialiseSqlVar(), ProtoBase::_KeyValues(), and OracleDatabase::ColumnTypeDDL(). |
|
Definition at line 67 of file preproc.h. Referenced by ProtoBase::_ExportAttributes(), ProtoBase::_ExportKeyAttributes(), ProtoBase::_ImportAttributes(), ProtoBase::_InitialiseSqlVar(), ProtoBase::_KeyValues(), PersistentObject::_VersionsMatch(), and OracleDatabase::ColumnTypeDDL(). |
|
Definition at line 72 of file preproc.h. Referenced by ProtoBase::_ExportAttributes(), ProtoBase::_ImportAttributes(), ProtoBase::_InitialiseSqlVar(), and OracleDatabase::ColumnTypeDDL(). |
|
Definition at line 71 of file preproc.h. Referenced by ProtoBase::_ExportAttributes(), ProtoBase::_ExportKeyAttributes(), ProtoBase::_ImportAttributes(), ProtoBase::_InitialiseSqlVar(), ProtoBase::_KeyValues(), RefBase::_Virtualise(), and OracleDatabase::ColumnTypeDDL(). |
|
Definition at line 73 of file preproc.h. Referenced by ProtoBase::_InitialiseSqlVar(). |
|
Definition at line 68 of file preproc.h. Referenced by ProtoBase::_ExportAttributes(), ProtoBase::_ExportKeyAttributes(), ProtoBase::_ImportAttributes(), ProtoBase::_InitialiseSqlVar(), ProtoBase::_KeyValues(), and OracleDatabase::ColumnTypeDDL(). |
|
|