Go to the documentation of this file.00001
00002
00003
00004
00005
00008
00009 #ifndef lgrConfigData_H_
00010 #define lgrConfigData_H_
00011
00012 #include "lgrCore.h"
00013
00014 #include "absoluteTime.h"
00015
00016 #include <vlutil/vlString.h>
00017
00018 #include <map>
00019
00020 namespace MAKLogger
00021 {
00022
00027 class DT_DLL_LGRCORE DtLgrConfigData
00028 {
00029 public:
00031 DtLgrConfigData();
00032
00033 DtLgrConfigData(const DtLgrConfigData& rhs);
00034
00036 virtual ~DtLgrConfigData();
00037
00038 DtLgrConfigData& operator=(const DtLgrConfigData& rhs);
00039
00040 virtual void clear();
00041
00042 virtual void setConfigFile(const DtString& filename);
00043 virtual const DtString& configFileName() const;
00044 virtual const DtString& configFileContents() const;
00045
00046 virtual char* serialize( int* pSize ) const;
00047
00048 bool deserialize(const char* buffer);
00049
00050 protected:
00051 void setAttributeToFile(const DtString& attrname, const DtString& filename);
00052 const DtString& configEntry(const DtString& entryKey) const;
00053
00054 private:
00055 int deserializeAttribute(const char* buffer);
00056
00057 protected:
00058 std::map<DtString, DtString> myAttributes;
00059 const DtString myConfigFileKey;
00060 const DtString myConfigFileContentsKey;
00061 };
00062
00063 }
00064
00065 #endif