MAK Data Logger API Documentation for HLA
lgrConfigData.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrConfigData_H_
10 #define lgrConfigData_H_
11 
12 #include "lgrCore.h"
13 
14 #include "absoluteTime.h"
15 
16 #include <vlutil/vlString.h>
17 
18 #include <map>
19 
20 namespace MAKLogger
21 {
22 
28  {
29  public:
32 
33  DtLgrConfigData(const DtLgrConfigData& rhs);
34 
36  virtual ~DtLgrConfigData();
37 
38  DtLgrConfigData& operator=(const DtLgrConfigData& rhs);
39 
40  virtual void clear();
41 
42  virtual void setConfigFile(const DtString& filename);
43  virtual const DtString& configFileName() const;
44  virtual const DtString& configFileContents() const;
45 
46  virtual char* serialize( int* pSize ) const;
47 
48  bool deserialize(const char* buffer);
49 
50  protected:
51  void setAttributeToFile(const DtString& attrname, const DtString& filename);
52  const DtString& configEntry(const DtString& entryKey) const;
53 
54  private:
55  int deserializeAttribute(const char* buffer);
56 
57  protected:
58  std::map<DtString, DtString> myAttributes;
61  };
62 
63 }
64 
65 #endif

Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)