ConfigurationImpl.h
Go to the documentation of this file.
00001 // -*- C++ -*-
00011 #ifndef CONFIGURATION_IMPL_H
00012 #define CONFIGURATION_IMPL_H
00013 
00014 #include <doil/ImplBase.h>
00015 #include <IConfiguration.h>
00016 //#include <Logger.h>
00017 
00018 namespace UnitTest
00019 {
00020 namespace Servant
00021 {
00022   class Logger;
00032   class ConfigurationImpl
00033    : public virtual doil::ImplBase,
00034      public virtual SDOPackage::Local::IConfiguration
00035   {
00036   public:
00037     ConfigurationImpl();
00038     ConfigurationImpl(Logger& aLogger);
00039 
00040     virtual ~ConfigurationImpl();
00041 
00042     virtual bool set_device_profile(const ::SDOPackage::Local::DeviceProfile& dProfile)
00043       throw (::SDOPackage::Local::InvalidParameter,
00044              ::SDOPackage::Local::NotAvailable,
00045              ::SDOPackage::Local::InternalError);
00046 
00047     virtual bool set_service_profile(const ::SDOPackage::Local::ServiceProfile& sProfile)
00048       throw (::SDOPackage::Local::InvalidParameter,
00049              ::SDOPackage::Local::NotAvailable,
00050              ::SDOPackage::Local::InternalError);
00051 
00052     virtual bool add_organization(const ::SDOPackage::Local::IOrganization* org)
00053       throw (::SDOPackage::Local::InvalidParameter,
00054              ::SDOPackage::Local::NotAvailable,
00055              ::SDOPackage::Local::InternalError);
00056 
00057     virtual bool remove_service_profile(const ::std::string& id)
00058       throw (::SDOPackage::Local::InvalidParameter,
00059              ::SDOPackage::Local::NotAvailable,
00060              ::SDOPackage::Local::InternalError);
00061 
00062     virtual bool remove_organization(const ::std::string& organization_id)
00063       throw (::SDOPackage::Local::InvalidParameter,
00064              ::SDOPackage::Local::NotAvailable,
00065              ::SDOPackage::Local::InternalError);
00066 
00067     virtual ::SDOPackage::Local::ParameterList get_configuration_parameters()
00068       throw (::SDOPackage::Local::NotAvailable,
00069              ::SDOPackage::Local::InternalError);
00070 
00071     virtual ::SDOPackage::Local::NVList get_configuration_parameter_values()
00072       throw (::SDOPackage::Local::NotAvailable,
00073              ::SDOPackage::Local::InternalError);
00074 
00075     virtual ::std::string get_configuration_parameter_value(const ::std::string& name)
00076       throw (::SDOPackage::Local::InvalidParameter,
00077              ::SDOPackage::Local::NotAvailable,
00078              ::SDOPackage::Local::InternalError);
00079 
00080     virtual bool set_configuration_parameter(const ::std::string&name, const ::std::string& value)
00081       throw (::SDOPackage::Local::InvalidParameter,
00082              ::SDOPackage::Local::NotAvailable,
00083              ::SDOPackage::Local::InternalError);
00084 
00085     virtual ::SDOPackage::Local::ConfigurationSetList get_configuration_sets()
00086       throw (::SDOPackage::Local::NotAvailable,
00087              ::SDOPackage::Local::InternalError);
00088 
00089     virtual ::SDOPackage::Local::ConfigurationSet get_configuration_set(const ::std::string& config_id)
00090       throw (::SDOPackage::Local::NotAvailable,
00091              ::SDOPackage::Local::InternalError);
00092 
00093     virtual bool set_configuration_set_values(const ::std::string&config_id, const ::SDOPackage::Local::ConfigurationSet& configuration_set)
00094       throw (::SDOPackage::Local::InvalidParameter,
00095              ::SDOPackage::Local::NotAvailable,
00096              ::SDOPackage::Local::InternalError);
00097 
00098     virtual ::SDOPackage::Local::ConfigurationSet get_active_configuration_set()
00099       throw (::SDOPackage::Local::NotAvailable,
00100              ::SDOPackage::Local::InternalError);
00101 
00102     virtual bool add_configuration_set(const ::SDOPackage::Local::ConfigurationSet& configuration_set)
00103       throw (::SDOPackage::Local::InvalidParameter,
00104              ::SDOPackage::Local::NotAvailable,
00105              ::SDOPackage::Local::InternalError);
00106 
00107     virtual bool remove_configuration_set(const ::std::string& config_id)
00108       throw (::SDOPackage::Local::InvalidParameter,
00109              ::SDOPackage::Local::NotAvailable,
00110              ::SDOPackage::Local::InternalError);
00111 
00112     virtual bool activate_configuration_set(const ::std::string& config_id)
00113       throw (::SDOPackage::Local::InvalidParameter,
00114              ::SDOPackage::Local::NotAvailable,
00115              ::SDOPackage::Local::InternalError);
00116 
00117     const char* id() { return "Configuration"; }
00118     const char* name() { return m_name; }
00119     void incRef() { refcount++; }
00120     void decRef() { refcount--; }
00121   private:
00122     static int count;
00123     char m_name[32];
00124     int refcount;
00125     Logger *m_logger;
00126   };
00127 }; // namespace Local 
00128 }; // namespace SDOPackage 
00129 
00130 #endif  // CONFIGURATION_IMPL_H
00131 // End of File.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:03