MAK Data Logger API Documentation for HLA
lgrConfigLoader.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 lgrConfigLoader_H_
10 #define lgrConfigLoader_H_
11 
12 #include "lgrApp.h"
13 #include <mtl/envObject.h>
14 #include <mtl/environment.h>
15 #include <vector>
16 #include <set>
17 
18 namespace MAKLogger
19 {
20  class DtAnyValue;
21  template <typename T>
22  class DtCollector;
23  class DtCommand;
24  class DtRuntimeCommandFactory;
25 
28  {
29  public:
30 
33  const DtString& filename );
34 
35  virtual ~DtLoggerAppConfigLoader();
36 
38  virtual bool isValid() const;
39 
40  virtual void setHasChanged(bool changedStatus);
41  virtual bool hasChanged() const;
42 
44  virtual void getInitCommands(DtCollector<DtCommand> commandCollector) const;
45  virtual void getStartupCommands(DtCollector<DtCommand> commandCollector) const;
46 
49  virtual const DtEnvValueSP getDefaultVariable(const DtString& name) const;
50 
53  virtual DtString getDefaultVariableValue(const DtString& name) const;
54 
57  virtual DtString getDefaultVariableType(const DtString& name) const;
58 
62  virtual DtEnvValueSP setDefaultVariable(const DtString& name,const DtString& value,
63  const DtString& type);
64 
68  virtual DtEnvValueSP setDefaultVariableList(const DtString& name,
69  const std::vector<DtString>& valList, const DtString& type);
70 
72  virtual DtEnvValueSP addDefaultVariableToList(const DtString& name,
73  const DtString& value, const DtString& type);
74 
76  virtual DtEnvValueSP addDefaultVariablesToList(const DtString& name,
77  const std::set<DtString>& valList, const DtString& type);
78 
80  virtual DtEnvValueSP removeDefaultVariableFromList(const DtString& name,
81  const DtString& value, const DtString& type);
82 
84  virtual DtEnvValueSP removeDefaultVariablesFromList(const DtString& name,
85  const std::set<DtString>& valList, const DtString& type);
86 
88  virtual DtEnvValueSP setDefaultVariable(const DtString& name,const DtString& value);
89 
91  virtual DtEnvValueSP setDefaultVariable(const DtString& name,bool value);
92 
94  virtual DtEnvValueSP setDefaultVariable(const DtString& name,int value);
95 
97  virtual DtEnvValueSP setDefaultVariable(const DtString& name,double value);
98 
100  virtual DtEnvValueSP setDefaultVariable(const DtString& name,std::vector<DtString>& value);
101 
103  virtual DtEnvValueSP setDefaultVariable(const DtString& name,std::vector<int>& value);
104 
106  virtual DtEnvValueSP setDefaultVariable(const DtString& name,std::vector<bool>& value);
107 
109  virtual DtEnvValueSP setDefaultVariable(const DtString& name,std::vector<double>& value);
110 
112  const DtEnvironment& environment() const;
113 
114  protected:
115 
117  virtual void getCommands(const DtString& stageName,
118  DtCollector<DtCommand> commandCollector) const;
119 
121  virtual DtCommand generateCommand(DtEnvironment& commandObj) const;
122 
124  virtual DtAnyValue* generateParameter(DtEnvironment& paramObj) const;
125 
128  bool parseFile(const DtString& filename);
129 
132  DtEnvironment myEnvironment;
135  };
136 
137 }
138 
139 #endif

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)