ConfigurationImpl.h
Go to the documentation of this file.
1 // -*- C++ -*-
11 #ifndef CONFIGURATION_IMPL_H
12 #define CONFIGURATION_IMPL_H
13 
14 #include <doil/ImplBase.h>
15 #include <IConfiguration.h>
16 //#include <Logger.h>
17 
18 namespace UnitTest
19 {
20 namespace Servant
21 {
22  class Logger;
33  : public virtual doil::ImplBase,
34  public virtual SDOPackage::Local::IConfiguration
35  {
36  public:
38  ConfigurationImpl(Logger& aLogger);
39 
40  virtual ~ConfigurationImpl();
41 
42  virtual bool set_device_profile(const ::SDOPackage::Local::DeviceProfile& dProfile)
43  throw (::SDOPackage::Local::InvalidParameter,
44  ::SDOPackage::Local::NotAvailable,
45  ::SDOPackage::Local::InternalError);
46 
47  virtual bool set_service_profile(const ::SDOPackage::Local::ServiceProfile& sProfile)
48  throw (::SDOPackage::Local::InvalidParameter,
49  ::SDOPackage::Local::NotAvailable,
50  ::SDOPackage::Local::InternalError);
51 
52  virtual bool add_organization(const ::SDOPackage::Local::IOrganization* org)
53  throw (::SDOPackage::Local::InvalidParameter,
54  ::SDOPackage::Local::NotAvailable,
55  ::SDOPackage::Local::InternalError);
56 
57  virtual bool remove_service_profile(const ::std::string& id)
58  throw (::SDOPackage::Local::InvalidParameter,
59  ::SDOPackage::Local::NotAvailable,
60  ::SDOPackage::Local::InternalError);
61 
62  virtual bool remove_organization(const ::std::string& organization_id)
63  throw (::SDOPackage::Local::InvalidParameter,
64  ::SDOPackage::Local::NotAvailable,
65  ::SDOPackage::Local::InternalError);
66 
67  virtual ::SDOPackage::Local::ParameterList get_configuration_parameters()
68  throw (::SDOPackage::Local::NotAvailable,
69  ::SDOPackage::Local::InternalError);
70 
72  throw (::SDOPackage::Local::NotAvailable,
73  ::SDOPackage::Local::InternalError);
74 
75  virtual ::std::string get_configuration_parameter_value(const ::std::string& name)
76  throw (::SDOPackage::Local::InvalidParameter,
77  ::SDOPackage::Local::NotAvailable,
78  ::SDOPackage::Local::InternalError);
79 
80  virtual bool set_configuration_parameter(const ::std::string&name, const ::std::string& value)
81  throw (::SDOPackage::Local::InvalidParameter,
82  ::SDOPackage::Local::NotAvailable,
83  ::SDOPackage::Local::InternalError);
84 
85  virtual ::SDOPackage::Local::ConfigurationSetList get_configuration_sets()
86  throw (::SDOPackage::Local::NotAvailable,
87  ::SDOPackage::Local::InternalError);
88 
89  virtual ::SDOPackage::Local::ConfigurationSet get_configuration_set(const ::std::string& config_id)
90  throw (::SDOPackage::Local::NotAvailable,
91  ::SDOPackage::Local::InternalError);
92 
93  virtual bool set_configuration_set_values(const ::std::string&config_id, const ::SDOPackage::Local::ConfigurationSet& configuration_set)
94  throw (::SDOPackage::Local::InvalidParameter,
95  ::SDOPackage::Local::NotAvailable,
96  ::SDOPackage::Local::InternalError);
97 
98  virtual ::SDOPackage::Local::ConfigurationSet get_active_configuration_set()
99  throw (::SDOPackage::Local::NotAvailable,
100  ::SDOPackage::Local::InternalError);
101 
102  virtual bool add_configuration_set(const ::SDOPackage::Local::ConfigurationSet& configuration_set)
103  throw (::SDOPackage::Local::InvalidParameter,
104  ::SDOPackage::Local::NotAvailable,
105  ::SDOPackage::Local::InternalError);
106 
107  virtual bool remove_configuration_set(const ::std::string& config_id)
108  throw (::SDOPackage::Local::InvalidParameter,
109  ::SDOPackage::Local::NotAvailable,
110  ::SDOPackage::Local::InternalError);
111 
112  virtual bool activate_configuration_set(const ::std::string& config_id)
113  throw (::SDOPackage::Local::InvalidParameter,
114  ::SDOPackage::Local::NotAvailable,
115  ::SDOPackage::Local::InternalError);
116 
117  const char* id() { return "Configuration"; }
118  const char* name() { return m_name; }
119  void incRef() { refcount++; }
120  void decRef() { refcount--; }
121  private:
122  static int count;
123  char m_name[32];
124  int refcount;
126  };
127 }; // namespace Local
128 }; // namespace SDOPackage
129 
130 #endif // CONFIGURATION_IMPL_H
131 // End of File.
virtual ::SDOPackage::Local::ConfigurationSet get_active_configuration_set()
virtual bool set_device_profile(const ::SDOPackage::Local::DeviceProfile &dProfile)
std::vector< std::pair< std::string, std::string > > NVList
Definition: IRTC.h:67
virtual bool remove_service_profile(const ::std::string &id)
virtual bool remove_organization(const ::std::string &organization_id)
virtual ::std::string get_configuration_parameter_value(const ::std::string &name)
virtual ::SDOPackage::Local::ParameterList get_configuration_parameters()
doil implementation base class
virtual bool add_organization(const ::SDOPackage::Local::IOrganization *org)
virtual bool set_configuration_set_values(const ::std::string &config_id, const ::SDOPackage::Local::ConfigurationSet &configuration_set)
virtual ::SDOPackage::Local::ConfigurationSet get_configuration_set(const ::std::string &config_id)
Configuration implementation class for ConfigurationServant&#39; unittest.
virtual ::SDOPackage::Local::NVList get_configuration_parameter_values()
virtual bool set_service_profile(const ::SDOPackage::Local::ServiceProfile &sProfile)
virtual bool set_configuration_parameter(const ::std::string &name, const ::std::string &value)
virtual bool activate_configuration_set(const ::std::string &config_id)
virtual bool remove_configuration_set(const ::std::string &config_id)
virtual bool add_configuration_set(const ::SDOPackage::Local::ConfigurationSet &configuration_set)
virtual ::SDOPackage::Local::ConfigurationSetList get_configuration_sets()


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:42