db.temp.h
00001 #ifndef CTL_DB_TEMP_H
00002 #define CTL_DB_TEMP_H
00003
00059 #ifndef CTL_DB_NAME
00060
00061
00062
00063 #error Database template name not given
00064 #endif
00065
00066 #ifndef CTL_DB_KEY_TYPE
00067
00068
00069
00070 #error Database key not defined
00071 #endif
00072
00073 #ifndef CTL_DB_KEY_MEMBER
00074
00075
00076
00077 #error Database key member not defined
00078 #endif
00079
00080 ifndef CTL_DB_RECID_MEMBER
00081
00082
00083
00084 #error Database record ID member not defined
00085 #endif
00086
00087 #ifndef CTL_DB_REC_SIZE
00088
00089
00090
00091 #error Database record size not defined
00092 #endif
00093
00094 #ifndef CTL_DB_REC_TYPE
00095
00096
00097
00098 #error Database record not defined
00099 #endif
00100
00101 #ifndef CTL_DB_REC_MEMBER_KEY
00102
00103
00104
00105
00106 #error Database record key clone not defined
00107 #endif
00108
00112 void ppConcat(CTL_DB_NAME,_open)( const char* szPath );
00117 void ppConcat(CTL_DB_NAME,_close)(void);
00126 void ppConcat(CTL_DB_NAME,_dumpXML)( const char* szPath, uint32 idFirst, uint32 idLast );
00127
00133 void ppConcat(CTL_DB_NAME,_importXML)( const char* szPath );
00134
00138 CTL_DB_REC_TYPE* ppConcat(CTL_DB_NAME,_read)( uint32 index );
00144 ctl_serial* ppConcat(CTL_DB_NAME,_read_serial)( uint32 index );
00149 void ppConcat(CTL_DB_NAME,_write)( CTL_DB_REC_TYPE* rec );
00150
00155 CTL_DB_KEY_TYPE* ppConcat(CTL_DB_NAME,_findname)( const char* szname );
00156
00157
00158
00159 #endif
00160