ConfigurationImpl.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00012 #include <ConfigurationImpl.h>
00013 #include <iostream>
00014 #include <Logger.h>
00015 
00016 namespace UnitTest
00017 {
00018 namespace Servant
00019 {
00029    int ConfigurationImpl::count = 0;
00030 
00031     ConfigurationImpl::ConfigurationImpl()
00032     {
00033       sprintf(m_name, "%s%d", id(), count);
00034       ++count;
00035       m_logger = new Logger();
00036 //      std::cout << "ConfigrationImpl: " << name() << " created." << std::endl;
00037     }
00038 
00039     ConfigurationImpl::ConfigurationImpl(Logger& aLogger)
00040     {
00041       sprintf(m_name, "%s%d", id(), count);
00042       ++count;
00043       m_logger = &aLogger;
00044 //      std::cout << "ConfigrationImpl: " << name() << " created." << std::endl;
00045     }
00046 
00047      ConfigurationImpl::~ConfigurationImpl()
00048     {
00049 //      std::cout << "ConfigrationImpl: " << name() << " deleted." << std::endl;
00050     };
00051 
00052      bool ConfigurationImpl::set_device_profile(const ::SDOPackage::Local::DeviceProfile& dProfile)
00053       throw (::SDOPackage::Local::InvalidParameter,
00054              ::SDOPackage::Local::NotAvailable,
00055              ::SDOPackage::Local::InternalError)
00056     {
00057       m_logger->push("set_device_profile");
00058       return true;
00059     }
00060 
00061      bool ConfigurationImpl::set_service_profile(const ::SDOPackage::Local::ServiceProfile& sProfile)
00062       throw (::SDOPackage::Local::InvalidParameter,
00063              ::SDOPackage::Local::NotAvailable,
00064              ::SDOPackage::Local::InternalError)
00065     {
00066       m_logger->push("set_service_profile");
00067       return true;
00068     }
00069 
00070      bool ConfigurationImpl::add_organization(const ::SDOPackage::Local::IOrganization* org)
00071       throw (::SDOPackage::Local::InvalidParameter,
00072              ::SDOPackage::Local::NotAvailable,
00073              ::SDOPackage::Local::InternalError)
00074     {
00075       m_logger->push("add_organization");
00076       return true;
00077     }
00078 
00079      bool ConfigurationImpl::remove_service_profile(const ::std::string& id)
00080       throw (::SDOPackage::Local::InvalidParameter,
00081              ::SDOPackage::Local::NotAvailable,
00082              ::SDOPackage::Local::InternalError)
00083     {
00084       m_logger->push("remove_service_profile");
00085       m_logger->push(id.c_str());
00086       return true;
00087     }
00088 
00089      bool ConfigurationImpl::remove_organization(const ::std::string& organization_id)
00090       throw (::SDOPackage::Local::InvalidParameter,
00091              ::SDOPackage::Local::NotAvailable,
00092              ::SDOPackage::Local::InternalError)
00093     {
00094       m_logger->push("remove_organization");
00095       m_logger->push(organization_id.c_str());
00096       return true;
00097     }
00098 
00099      ::SDOPackage::Local::ParameterList ConfigurationImpl::get_configuration_parameters()
00100       throw (::SDOPackage::Local::NotAvailable,
00101              ::SDOPackage::Local::InternalError)
00102     {
00103       m_logger->push("get_configuration_parameters");
00104       ::SDOPackage::Local::ParameterList result;
00105       return result;
00106     }
00107 
00108      ::SDOPackage::Local::NVList ConfigurationImpl::get_configuration_parameter_values()
00109       throw (::SDOPackage::Local::NotAvailable,
00110              ::SDOPackage::Local::InternalError)
00111     {
00112       m_logger->push("get_configuration_parameter_values");
00113       ::SDOPackage::Local::NVList result;
00114       return result;
00115     }
00116 
00117      ::std::string ConfigurationImpl::get_configuration_parameter_value(const ::std::string& name)
00118       throw (::SDOPackage::Local::InvalidParameter,
00119              ::SDOPackage::Local::NotAvailable,
00120              ::SDOPackage::Local::InternalError)
00121     {
00122       m_logger->push("get_configuration_parameter_value");
00123       m_logger->push(name.c_str());
00124       ::std::string result(name);
00125       return result;
00126     }
00127 
00128      bool ConfigurationImpl::set_configuration_parameter(const ::std::string&name, const ::std::string& value)
00129       throw (::SDOPackage::Local::InvalidParameter,
00130              ::SDOPackage::Local::NotAvailable,
00131              ::SDOPackage::Local::InternalError)
00132     {
00133       m_logger->push("set_configuration_parameter");
00134       m_logger->push(name.c_str());
00135       return true;
00136     }
00137 
00138      ::SDOPackage::Local::ConfigurationSetList ConfigurationImpl::get_configuration_sets()
00139       throw (::SDOPackage::Local::NotAvailable,
00140              ::SDOPackage::Local::InternalError)
00141     {
00142       m_logger->push("get_configuration_sets");
00143       ::SDOPackage::Local::ConfigurationSetList result;
00144       return result;
00145     }
00146 
00147      ::SDOPackage::Local::ConfigurationSet ConfigurationImpl::get_configuration_set(const ::std::string& config_id)
00148       throw (::SDOPackage::Local::NotAvailable,
00149              ::SDOPackage::Local::InternalError)
00150     {
00151       m_logger->push("get_configuration_set");
00152       ::SDOPackage::Local::ConfigurationSet result;
00153       m_logger->push(config_id.c_str());
00154       return result;
00155     }
00156 
00157      bool ConfigurationImpl::set_configuration_set_values(const ::std::string&config_id, const ::SDOPackage::Local::ConfigurationSet& configuration_set)
00158       throw (::SDOPackage::Local::InvalidParameter,
00159              ::SDOPackage::Local::NotAvailable,
00160              ::SDOPackage::Local::InternalError)
00161     {
00162       m_logger->push("set_configuration_set_values");
00163       m_logger->push(config_id.c_str());
00164       return true;
00165     }
00166 
00167      ::SDOPackage::Local::ConfigurationSet ConfigurationImpl::get_active_configuration_set()
00168       throw (::SDOPackage::Local::NotAvailable,
00169              ::SDOPackage::Local::InternalError)
00170     {
00171       m_logger->push("get_active_configuration_set");
00172       ::SDOPackage::Local::ConfigurationSet result;
00173       return result;
00174       
00175     }
00176 
00177      bool ConfigurationImpl::add_configuration_set(const ::SDOPackage::Local::ConfigurationSet& configuration_set)
00178       throw (::SDOPackage::Local::InvalidParameter,
00179              ::SDOPackage::Local::NotAvailable,
00180              ::SDOPackage::Local::InternalError)
00181     {
00182       m_logger->push("add_configuration_set");
00183       return true;
00184     }
00185 
00186      bool ConfigurationImpl::remove_configuration_set(const ::std::string& config_id)
00187       throw (::SDOPackage::Local::InvalidParameter,
00188              ::SDOPackage::Local::NotAvailable,
00189              ::SDOPackage::Local::InternalError)
00190     {
00191       m_logger->push("remove_configuration_set");
00192       m_logger->push(config_id.c_str());
00193       return true;
00194     }
00195 
00196      bool ConfigurationImpl::activate_configuration_set(const ::std::string& config_id)
00197       throw (::SDOPackage::Local::InvalidParameter,
00198              ::SDOPackage::Local::NotAvailable,
00199              ::SDOPackage::Local::InternalError)
00200     {
00201       m_logger->push("activate_configuration_set");
00202       m_logger->push(config_id.c_str());
00203       return true;
00204     }
00205 
00206 }; // namespace Local 
00207 }; // namespace SDOPackage 
00208 
00209 // End of File.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sun Mar 26 2017 03:37:15