ConfigurationImpl.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
12 #include <ConfigurationImpl.h>
13 #include <iostream>
14 #include <Logger.h>
15 
16 namespace UnitTest
17 {
18 namespace Servant
19 {
30 
32  {
33  sprintf(m_name, "%s%d", id(), count);
34  ++count;
35  m_logger = new Logger();
36 // std::cout << "ConfigrationImpl: " << name() << " created." << std::endl;
37  }
38 
40  {
41  sprintf(m_name, "%s%d", id(), count);
42  ++count;
43  m_logger = &aLogger;
44 // std::cout << "ConfigrationImpl: " << name() << " created." << std::endl;
45  }
46 
48  {
49 // std::cout << "ConfigrationImpl: " << name() << " deleted." << std::endl;
50  };
51 
52  bool ConfigurationImpl::set_device_profile(const ::SDOPackage::Local::DeviceProfile& dProfile)
53  throw (::SDOPackage::Local::InvalidParameter,
54  ::SDOPackage::Local::NotAvailable,
55  ::SDOPackage::Local::InternalError)
56  {
57  m_logger->push("set_device_profile");
58  return true;
59  }
60 
61  bool ConfigurationImpl::set_service_profile(const ::SDOPackage::Local::ServiceProfile& sProfile)
62  throw (::SDOPackage::Local::InvalidParameter,
63  ::SDOPackage::Local::NotAvailable,
64  ::SDOPackage::Local::InternalError)
65  {
66  m_logger->push("set_service_profile");
67  return true;
68  }
69 
70  bool ConfigurationImpl::add_organization(const ::SDOPackage::Local::IOrganization* org)
71  throw (::SDOPackage::Local::InvalidParameter,
72  ::SDOPackage::Local::NotAvailable,
73  ::SDOPackage::Local::InternalError)
74  {
75  m_logger->push("add_organization");
76  return true;
77  }
78 
79  bool ConfigurationImpl::remove_service_profile(const ::std::string& id)
80  throw (::SDOPackage::Local::InvalidParameter,
81  ::SDOPackage::Local::NotAvailable,
82  ::SDOPackage::Local::InternalError)
83  {
84  m_logger->push("remove_service_profile");
85  m_logger->push(id.c_str());
86  return true;
87  }
88 
89  bool ConfigurationImpl::remove_organization(const ::std::string& organization_id)
90  throw (::SDOPackage::Local::InvalidParameter,
91  ::SDOPackage::Local::NotAvailable,
92  ::SDOPackage::Local::InternalError)
93  {
94  m_logger->push("remove_organization");
95  m_logger->push(organization_id.c_str());
96  return true;
97  }
98 
99  ::SDOPackage::Local::ParameterList ConfigurationImpl::get_configuration_parameters()
100  throw (::SDOPackage::Local::NotAvailable,
101  ::SDOPackage::Local::InternalError)
102  {
103  m_logger->push("get_configuration_parameters");
104  ::SDOPackage::Local::ParameterList result;
105  return result;
106  }
107 
109  throw (::SDOPackage::Local::NotAvailable,
110  ::SDOPackage::Local::InternalError)
111  {
112  m_logger->push("get_configuration_parameter_values");
114  return result;
115  }
116 
117  ::std::string ConfigurationImpl::get_configuration_parameter_value(const ::std::string& name)
118  throw (::SDOPackage::Local::InvalidParameter,
119  ::SDOPackage::Local::NotAvailable,
120  ::SDOPackage::Local::InternalError)
121  {
122  m_logger->push("get_configuration_parameter_value");
123  m_logger->push(name.c_str());
124  ::std::string result(name);
125  return result;
126  }
127 
128  bool ConfigurationImpl::set_configuration_parameter(const ::std::string&name, const ::std::string& value)
129  throw (::SDOPackage::Local::InvalidParameter,
130  ::SDOPackage::Local::NotAvailable,
131  ::SDOPackage::Local::InternalError)
132  {
133  m_logger->push("set_configuration_parameter");
134  m_logger->push(name.c_str());
135  return true;
136  }
137 
138  ::SDOPackage::Local::ConfigurationSetList ConfigurationImpl::get_configuration_sets()
139  throw (::SDOPackage::Local::NotAvailable,
140  ::SDOPackage::Local::InternalError)
141  {
142  m_logger->push("get_configuration_sets");
143  ::SDOPackage::Local::ConfigurationSetList result;
144  return result;
145  }
146 
147  ::SDOPackage::Local::ConfigurationSet ConfigurationImpl::get_configuration_set(const ::std::string& config_id)
148  throw (::SDOPackage::Local::NotAvailable,
149  ::SDOPackage::Local::InternalError)
150  {
151  m_logger->push("get_configuration_set");
152  ::SDOPackage::Local::ConfigurationSet result;
153  m_logger->push(config_id.c_str());
154  return result;
155  }
156 
157  bool ConfigurationImpl::set_configuration_set_values(const ::std::string&config_id, const ::SDOPackage::Local::ConfigurationSet& configuration_set)
158  throw (::SDOPackage::Local::InvalidParameter,
159  ::SDOPackage::Local::NotAvailable,
160  ::SDOPackage::Local::InternalError)
161  {
162  m_logger->push("set_configuration_set_values");
163  m_logger->push(config_id.c_str());
164  return true;
165  }
166 
167  ::SDOPackage::Local::ConfigurationSet ConfigurationImpl::get_active_configuration_set()
168  throw (::SDOPackage::Local::NotAvailable,
169  ::SDOPackage::Local::InternalError)
170  {
171  m_logger->push("get_active_configuration_set");
172  ::SDOPackage::Local::ConfigurationSet result;
173  return result;
174 
175  }
176 
177  bool ConfigurationImpl::add_configuration_set(const ::SDOPackage::Local::ConfigurationSet& configuration_set)
178  throw (::SDOPackage::Local::InvalidParameter,
179  ::SDOPackage::Local::NotAvailable,
180  ::SDOPackage::Local::InternalError)
181  {
182  m_logger->push("add_configuration_set");
183  return true;
184  }
185 
186  bool ConfigurationImpl::remove_configuration_set(const ::std::string& config_id)
187  throw (::SDOPackage::Local::InvalidParameter,
188  ::SDOPackage::Local::NotAvailable,
189  ::SDOPackage::Local::InternalError)
190  {
191  m_logger->push("remove_configuration_set");
192  m_logger->push(config_id.c_str());
193  return true;
194  }
195 
196  bool ConfigurationImpl::activate_configuration_set(const ::std::string& config_id)
197  throw (::SDOPackage::Local::InvalidParameter,
198  ::SDOPackage::Local::NotAvailable,
199  ::SDOPackage::Local::InternalError)
200  {
201  m_logger->push("activate_configuration_set");
202  m_logger->push(config_id.c_str());
203  return true;
204  }
205 
206 }; // namespace Local
207 }; // namespace SDOPackage
208 
209 // 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()
SDO Package.
virtual bool add_organization(const ::SDOPackage::Local::IOrganization *org)
int push(std::string &str)
Definition: Logger.cpp:8
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)
std::string sprintf(char const *__restrict fmt,...)
Convert it into a format given with an argumen.
Definition: stringutil.cpp:593
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 Thu Jun 6 2019 19:25:57