db.temp.h

00001 #ifndef CTL_DB_TEMP_H
00002 #define CTL_DB_TEMP_H
00003 
00059 #ifndef CTL_DB_NAME
00060 /*
00061  * Database key is a small record stored in RAM, used to index the larger record 
00062  */
00063 #error Database template name not given
00064 #endif
00065 
00066 #ifndef CTL_DB_KEY_TYPE
00067 /*
00068  * Database key is a small record stored in RAM, used to index the larger record 
00069  */
00070 #error Database key not defined
00071 #endif
00072 
00073 #ifndef CTL_DB_KEY_MEMBER
00074 /*
00075  * Database key has one particular member that we search according to
00076  */
00077 #error Database key member not defined
00078 #endif
00079 
00080 ifndef CTL_DB_RECID_MEMBER
00081 /*
00082  * Database key has one particular member that references the record in the file
00083  */
00084 #error Database record ID member not defined
00085 #endif
00086 
00087 #ifndef CTL_DB_REC_SIZE
00088 /*
00089  * Records are a fixed size to make seeking them out and modifying them trivial.
00090  */
00091 #error Database record size not defined
00092 #endif
00093 
00094 #ifndef CTL_DB_REC_TYPE
00095 /*
00096  * Record stays on the hard drive unless mapped temporarily into RAM 
00097  */
00098 #error Database record not defined
00099 #endif
00100 
00101 #ifndef CTL_DB_REC_MEMBER_KEY
00102 /*
00103  * Record needs a clone of 'KEY', so the key table can be recreated from 
00104  * database table if necessary. 
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 /* CTL_DB_TEMP_H */
00160 

Generated on Fri Jan 2 15:28:34 2009 for Squat by  doxygen 1.5.6