ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
iDeviceConfig.hpp
Go to the documentation of this file.
1 
9 #ifndef FCF_DEVMGR_COMMON_IDEVICECONFIG_HPP_
10 #define FCF_DEVMGR_COMMON_IDEVICECONFIG_HPP_
11 
12 // System headers
13 #include <string>
14 
15 // Third party headers
16 #include <yaml-cpp/yaml.h>
17 
18 #include <fcf/common/iComm.hpp>
20 
21 namespace fcf {
22  namespace devmgr {
23  namespace common {
24 
32  class IDeviceConfig {
33 
34  public:
35 
45  virtual void ReadConfig() = 0;
46 
54  virtual void GetConfig(fcf::common::VectorVariant& params) = 0;
55 
56 
61  virtual std::string GetIdentifier() = 0;
62 
67  virtual std::string GetPrefix() = 0;
68 
73  virtual std::string GetAddress() = 0;
74 
79  virtual std::string GetSimAddress() = 0;
80 
84  virtual std::string GetType() = 0;
85 
90  virtual int GetNamespace() = 0;
91 
96  virtual std::string GetMapFile() = 0;
97 
102  virtual std::string GetAlias() = 0;
103 
108  virtual std::string GetName() = 0;
109 
118  virtual std::string GetNodeId(const std::string& attrib) = 0;
119 
130  virtual std::string GetProcId(const std::string& attrib) = 0;
131 
141  virtual std::string GetObjId() = 0;
142 
147  virtual void SetSimulateFlag(bool flag) = 0;
148 
153  virtual void SetIgnoreFlag(bool flag) = 0;
154 
159  virtual bool GetIgnored() = 0;
160 
165  virtual bool GetSimulated() = 0;
166 
167  protected:
168  };
169 
170  }
171  }
172 }
173 
174 
175 #endif //FCF_DEVMGR_COMMON_IDEVICECONFIG_HPP_
virtual std::string GetSimAddress()=0
virtual std::string GetMapFile()=0
virtual void SetSimulateFlag(bool flag)=0
Set simulation flag.
virtual void SetIgnoreFlag(bool flag)=0
Set ignore flag.
virtual std::string GetPrefix()=0
virtual void GetConfig(fcf::common::VectorVariant &params)=0
Obtain the list of configuration parameters.
configSet class header file.
virtual void ReadConfig()=0
Read the configuration.
virtual std::string GetAddress()=0
virtual std::string GetType()=0
virtual bool GetSimulated()=0
GetSimulated.
virtual std::string GetName()=0
virtual std::string GetIdentifier()=0
virtual std::string GetAlias()=0
virtual std::string GetNodeId(const std::string &attrib)=0
Get node id.
virtual bool GetIgnored()=0
Get ignored flag.
virtual std::string GetObjId()=0
Get object id.
virtual std::string GetProcId(const std::string &attrib)=0
Get procedure id.
Device Configuration class.
Definition: iDeviceConfig.hpp:32