00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef STRECORD_H
00034 #define STRECORD_H
00035
00036 #include <string>
00037 #include <vector>
00038
00039 #include "StDbFieldI.h"
00040 #include "RecordList.h"
00041 namespace TxLogging {
00046 class StRecord {
00047 public:
00048 StRecord();
00049
00057 StRecord(const TxLogging::FieldList& fields);
00058
00063 StRecord(const StRecord&);
00064 const StRecord& operator=(const StRecord& );
00065
00069 virtual ~StRecord();
00070
00075 const char *toString() const;
00076
00081 StDbFieldI* getField(const char *name) const;
00082
00088 StDbFieldI* getField(unsigned int col) const;
00089
00098 void removeField(const char *name);
00099
00106 void removeField(int col);
00107
00111 TxLogging::FieldList &getFields();
00112 const TxLogging::FieldList &getFields() const;
00113 void printHeader() const;
00114 void print() const;
00115
00119 TxLogging::RecordList &getRecords();
00120 const TxLogging::RecordList &getRecords() const;
00121 private:
00126 void copy(const StRecord& r);
00127
00132 void clearList();
00133
00134 private:
00135
00136 TxLogging::FieldList fFields;
00137 TxLogging::RecordList fRecords;
00138 };
00139 }
00140 #endif
00141
00142
00143