49 #ifndef SdoConfiguration_cpp 50 #define SdoConfiguration_cpp 52 #include <cppunit/ui/text/TestRunner.h> 53 #include <cppunit/TextOutputter.h> 54 #include <cppunit/extensions/TestFactoryRegistry.h> 55 #include <cppunit/extensions/HelperMacros.h> 56 #include <cppunit/TestAssert.h> 82 return (_id == std::string(svcProf.id));
89 :
public CppUnit::TestFixture
93 CPPUNIT_TEST(test_set_device_profile_and_getDeviceProfile);
94 CPPUNIT_TEST(test_set_service_profile_and_getServiceProfile);
95 CPPUNIT_TEST(test_getServiceProfiles);
96 CPPUNIT_TEST(test_remove_service_profile);
97 CPPUNIT_TEST(test_add_organization_and_getOrganizations);
98 CPPUNIT_TEST(test_remove_organization);
99 CPPUNIT_TEST(test_add_configuration_set_and_get_configuration_set);
100 CPPUNIT_TEST(test_remove_configuration_set);
101 CPPUNIT_TEST(test_set_configuration_set_values);
102 CPPUNIT_TEST(test_activate_configuration_set_and_get_active_configuration_set);
108 CPPUNIT_TEST_SUITE_END();
122 m_pORB = CORBA::ORB_init(argc, argv);
123 m_pPOA = PortableServer::POA::_narrow(
124 m_pORB->resolve_initial_references(
"RootPOA"));
125 m_pPOA->the_POAManager()->activate();
163 SDOPackage::DeviceProfile
devProf;
164 devProf.device_type =
"DEVICE_TYPE";
165 devProf.manufacturer =
"MANUFACTURER";
166 devProf.model =
"MODEL";
167 devProf.version =
"VERSION";
170 properties.length(2);
171 properties[0].name =
"name 0";
172 properties[0].value <<= CORBA::Float(3.14159);
173 properties[1].name =
"name 1";
174 properties[1].value <<= CORBA::Float(2.71828);
175 devProf.properties = properties;
183 CPPUNIT_ASSERT_EQUAL(std::string(
"DEVICE_TYPE"),
184 std::string(devProfRet.device_type));
185 CPPUNIT_ASSERT_EQUAL(std::string(
"MANUFACTURER"),
186 std::string(devProfRet.manufacturer));
187 CPPUNIT_ASSERT_EQUAL(std::string(
"MODEL"),
188 std::string(devProfRet.model));
189 CPPUNIT_ASSERT_EQUAL(std::string(
"VERSION"),
190 std::string(devProfRet.version));
191 CPPUNIT_ASSERT_EQUAL(std::string(
"name 0"),
192 std::string(devProfRet.properties[0].name));
194 CORBA::Float value; devProfRet.properties[0].value >>= value;
195 CPPUNIT_ASSERT_EQUAL(CORBA::Float(3.14159), value);
197 CPPUNIT_ASSERT_EQUAL(std::string(
"name 1"),
198 std::string(devProfRet.properties[1].name));
200 CORBA::Float value; devProfRet.properties[1].value >>= value;
201 CPPUNIT_ASSERT_EQUAL(CORBA::Float(2.71828), value);
203 sdoCfg->_remove_ref();
220 SDOPackage::ServiceProfile
svcProf;
222 svcProf.interface_type =
"INTERFACE_TYPE";
225 properties.length(2);
226 properties[0].name =
"name 0";
227 properties[0].value <<= CORBA::Float(3.14159);
228 properties[1].name =
"name 1";
229 properties[1].value <<= CORBA::Float(2.71828);
230 svcProf.properties = properties;
237 const SDOPackage::ServiceProfile svcProfRet = sdoCfg->getServiceProfile(
"ID");
238 CPPUNIT_ASSERT_EQUAL(std::string(
"ID"), std::string(svcProfRet.id));
239 CPPUNIT_ASSERT_EQUAL(std::string(
"INTERFACE_TYPE"),
240 std::string(svcProfRet.interface_type));
241 CPPUNIT_ASSERT_EQUAL(std::string(
"name 0"),
242 std::string(svcProfRet.properties[0].name));
244 CORBA::Float value; svcProfRet.properties[0].value >>= value;
245 CPPUNIT_ASSERT_EQUAL(CORBA::Float(3.14159), value);
247 CPPUNIT_ASSERT_EQUAL(std::string(
"name 1"),
248 std::string(svcProfRet.properties[1].name));
250 CORBA::Float value; svcProfRet.properties[1].value >>= value;
251 CPPUNIT_ASSERT_EQUAL(CORBA::Float(2.71828), value);
253 sdoCfg->_remove_ref();
270 SDOPackage::ServiceProfile svcProf0;
271 svcProf0.id =
"ID 0";
272 svcProf0.interface_type =
"INTERFACE_TYPE 0";
275 properties.length(2);
276 properties[0].name =
"name 0-0";
277 properties[0].value <<= CORBA::Float(3.14159);
278 properties[1].name =
"name 0-1";
279 properties[1].value <<= CORBA::Float(2.71828);
280 svcProf0.properties = properties;
283 SDOPackage::ServiceProfile svcProf1;
284 svcProf1.id =
"ID 1";
285 svcProf1.interface_type =
"INTERFACE_TYPE 1";
288 properties.length(2);
289 properties[0].name =
"name 1-0";
290 properties[0].value <<= CORBA::Float(1.41421356);
291 properties[1].name =
"name 1-1";
292 properties[1].value <<= CORBA::Float(1.7320508);
293 svcProf1.properties = properties;
301 const SDOPackage::ServiceProfileList svcProfList = sdoCfg->getServiceProfiles();
302 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(2), svcProfList.length());
308 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 0"),
309 std::string(svcProfList[idx].
id));
310 CPPUNIT_ASSERT_EQUAL(std::string(
"INTERFACE_TYPE 0"),
311 std::string(svcProfList[idx].interface_type));
312 CPPUNIT_ASSERT_EQUAL(std::string(
"name 0-0"),
313 std::string(svcProfList[idx].properties[0].name));
315 CORBA::Float value; svcProfList[idx].properties[0].value >>= value;
316 CPPUNIT_ASSERT_EQUAL(CORBA::Float(3.14159), value);
318 CPPUNIT_ASSERT_EQUAL(std::string(
"name 0-1"),
319 std::string(svcProfList[idx].properties[1].name));
321 CORBA::Float value; svcProfList[idx].properties[1].value >>= value;
322 CPPUNIT_ASSERT_EQUAL(CORBA::Float(2.71828), value);
329 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 1"),
330 std::string(svcProfList[idx].
id));
331 CPPUNIT_ASSERT_EQUAL(std::string(
"INTERFACE_TYPE 1"),
332 std::string(svcProfList[idx].interface_type));
333 CPPUNIT_ASSERT_EQUAL(std::string(
"name 1-0"),
334 std::string(svcProfList[idx].properties[0].name));
336 CORBA::Float value; svcProfList[idx].properties[0].value >>= value;
337 CPPUNIT_ASSERT_EQUAL(CORBA::Float(1.41421356), value);
339 CPPUNIT_ASSERT_EQUAL(std::string(
"name 1-1"),
340 std::string(svcProfList[idx].properties[1].name));
342 CORBA::Float value; svcProfList[idx].properties[1].value >>= value;
343 CPPUNIT_ASSERT_EQUAL(CORBA::Float(1.7320508), value);
346 sdoCfg->_remove_ref();
363 SDOPackage::ServiceProfile svcProf0;
364 svcProf0.id =
"ID 0";
365 svcProf0.interface_type =
"INTERFACE_TYPE 0";
368 properties.length(2);
369 properties[0].name =
"name 0-0";
370 properties[0].value <<= CORBA::Float(3.14159);
371 properties[1].name =
"name 0-1";
372 properties[1].value <<= CORBA::Float(2.71828);
373 svcProf0.properties = properties;
376 SDOPackage::ServiceProfile svcProf1;
377 svcProf1.id =
"ID 1";
378 svcProf1.interface_type =
"INTERFACE_TYPE 1";
381 properties.length(2);
382 properties[0].name =
"name 1-0";
383 properties[0].value <<= CORBA::Float(1.41421356);
384 properties[1].name =
"name 1-1";
385 properties[1].value <<= CORBA::Float(1.7320508);
386 svcProf1.properties = properties;
397 const SDOPackage::ServiceProfileList svcProfList = sdoCfg->getServiceProfiles();
398 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(1), svcProfList.length());
399 CPPUNIT_ASSERT_EQUAL(CORBA::Long(-1),
403 CPPUNIT_ASSERT_EQUAL(CORBA::Long(0),
406 sdoCfg->_remove_ref();
424 SDOPackage::Organization_var org1;
425 CPPUNIT_ASSERT_EQUAL(CORBA::Boolean(
true),
428 SDOPackage::Organization_var org2;
429 CPPUNIT_ASSERT_EQUAL(CORBA::Boolean(
true),
434 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(2), orgList.length());
436 sdoCfg->_remove_ref();
453 rtobj = new ::RTC::RTObject_impl(&mgr);
457 CPPUNIT_ASSERT_EQUAL(CORBA::Boolean(
true),
464 CPPUNIT_ASSERT_EQUAL(CORBA::Boolean(
true),
469 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(0), orgList.length());
471 m_pOi->_remove_ref();
472 rtobj->_remove_ref();
473 sdoCfg->_remove_ref();
535 SDOPackage::ConfigurationSet cfgSet0;
537 cfgSet0.description =
"DESCRIPTION 0";
538 cfgSet0.configuration_data.length(2);
539 cfgSet0.configuration_data[0].name =
"NAME 0-0";
540 cfgSet0.configuration_data[0].value <<=
"3.14159";
541 cfgSet0.configuration_data[1].name =
"NAME 0-1";
542 cfgSet0.configuration_data[1].value <<=
"2.71828";
544 SDOPackage::ConfigurationSet cfgSet1;
546 cfgSet1.description =
"DESCRIPTION 1";
547 cfgSet1.configuration_data.length(2);
548 cfgSet1.configuration_data[0].name =
"NAME 1-0";
549 cfgSet1.configuration_data[0].value <<=
"1.41421356";
550 cfgSet1.configuration_data[1].name =
"NAME 1-1";
551 cfgSet1.configuration_data[1].value <<=
"1.7320508";
559 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 0"),
560 std::string(cfgSetRet0->id));
564 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(2),
565 cfgSetRet0->configuration_data.length());
566 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 0-0"),
567 std::string(cfgSetRet0->configuration_data[0].name));
569 const char* value; cfgSetRet0->configuration_data[0].value >>= value;
570 CPPUNIT_ASSERT_EQUAL(std::string(
"3.14159"), std::string(value));
572 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 0-1"),
573 std::string(cfgSetRet0->configuration_data[1].name));
575 const char* value; cfgSetRet0->configuration_data[1].value >>= value;
576 CPPUNIT_ASSERT_EQUAL(std::string(
"2.71828"), std::string(value));
580 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 1"),
581 std::string(cfgSetRet1->id));
585 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(2),
586 cfgSetRet1->configuration_data.length());
587 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 1-0"),
588 std::string(cfgSetRet1->configuration_data[0].name));
590 const char* value; cfgSetRet1->configuration_data[0].value >>= value;
591 CPPUNIT_ASSERT_EQUAL(std::string(
"1.41421356"), std::string(value));
593 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 1-1"),
594 std::string(cfgSetRet1->configuration_data[1].name));
596 const char* value; cfgSetRet1->configuration_data[1].value >>= value;
597 CPPUNIT_ASSERT_EQUAL(std::string(
"1.7320508"), std::string(value));
600 sdoCfg->_remove_ref();
618 SDOPackage::ConfigurationSet cfgSet0;
620 cfgSet0.description =
"DESCRIPTION 0";
621 cfgSet0.configuration_data.length(2);
622 cfgSet0.configuration_data[0].name =
"NAME 0-0";
623 cfgSet0.configuration_data[0].value <<=
"3.14159";
624 cfgSet0.configuration_data[1].name =
"NAME 0-1";
625 cfgSet0.configuration_data[1].value <<=
"2.71828";
627 SDOPackage::ConfigurationSet cfgSet1;
629 cfgSet1.description =
"DESCRIPTION 1";
630 cfgSet1.configuration_data.length(2);
631 cfgSet1.configuration_data[0].name =
"NAME 1-0";
632 cfgSet1.configuration_data[0].value <<=
"1.41421356";
633 cfgSet1.configuration_data[1].name =
"NAME 1-1";
634 cfgSet1.configuration_data[1].value <<=
"1.7320508";
648 CPPUNIT_FAIL(
"ID 0 was not removed.");
650 catch (SDOPackage::InvalidParameter expected) {}
658 CPPUNIT_FAIL(
"ID Not set.");
660 catch (SDOPackage::InvalidParameter expected) {}
665 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 1"), std::string(cfgSetRet->id));
671 CPPUNIT_FAIL(
"Exception not thrown.");
673 catch (SDOPackage::InvalidParameter expected) {}
676 sdoCfg->_remove_ref();
694 SDOPackage::ConfigurationSet cfgSet0;
696 cfgSet0.description =
"DESCRIPTION 0";
697 cfgSet0.configuration_data.length(2);
698 cfgSet0.configuration_data[0].name =
"NAME 0-0";
699 cfgSet0.configuration_data[0].value <<=
"3.14159";
700 cfgSet0.configuration_data[1].name =
"NAME 0-1";
701 cfgSet0.configuration_data[1].value <<=
"2.71828";
703 SDOPackage::ConfigurationSet cfgSet1;
705 cfgSet1.description =
"DESCRIPTION 1";
706 cfgSet1.configuration_data.length(2);
707 cfgSet1.configuration_data[0].name =
"NAME 1-0";
708 cfgSet1.configuration_data[0].value <<=
"1.41421356";
709 cfgSet1.configuration_data[1].name =
"NAME 1-1";
710 cfgSet1.configuration_data[1].value <<=
"1.7320508";
712 SDOPackage::ConfigurationSet cfgSet1_Modified;
713 cfgSet1_Modified.id =
"ID 1";
714 cfgSet1_Modified.description =
"DESCRIPTION 1 M";
715 cfgSet1_Modified.configuration_data.length(2);
716 cfgSet1_Modified.configuration_data[0].name =
"NAME 1-0";
717 cfgSet1_Modified.configuration_data[0].value <<=
"2.23620679";
718 cfgSet1_Modified.configuration_data[1].name =
"NAME 1-1";
719 cfgSet1_Modified.configuration_data[1].value <<=
"2.44948974";
726 CPPUNIT_ASSERT_EQUAL(CORBA::Boolean(
true),
731 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 1"), std::string(cfgSetRet->id));
736 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(2),
737 cfgSetRet->configuration_data.length());
740 const char* value; cfgSetRet->configuration_data[0].value >>= value;
741 CPPUNIT_ASSERT_EQUAL(std::string(
"2.23620679"), std::string(value));
744 const char* value; cfgSetRet->configuration_data[1].value >>= value;
745 CPPUNIT_ASSERT_EQUAL(std::string(
"2.44948974"), std::string(value));
752 cfgSet1_Modified.id =
"";
754 CPPUNIT_FAIL(
"Exception not thrown.");
756 catch (SDOPackage::InvalidParameter expected) {
759 sdoCfg->_remove_ref();
776 SDOPackage::ConfigurationSet cfgSet0;
778 cfgSet0.description =
"DESCRIPTION 0";
779 cfgSet0.configuration_data.length(2);
780 cfgSet0.configuration_data[0].name =
"NAME 0-0";
781 cfgSet0.configuration_data[0].value <<=
"3.14159";
782 cfgSet0.configuration_data[1].name =
"NAME 0-1";
783 cfgSet0.configuration_data[1].value <<=
"2.71828";
785 SDOPackage::ConfigurationSet cfgSet1;
787 cfgSet1.description =
"DESCRIPTION 1";
788 cfgSet1.configuration_data.length(2);
789 cfgSet1.configuration_data[0].name =
"NAME 1-0";
790 cfgSet1.configuration_data[0].value <<=
"1.41421356";
791 cfgSet1.configuration_data[1].name =
"NAME 1-1";
792 cfgSet1.configuration_data[1].value <<=
"1.7320508";
802 CPPUNIT_ASSERT(config_sets->length() == 2);
803 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 0"),
804 std::string(config_sets[0].
id));
805 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 0-0"),
806 std::string(config_sets[0].configuration_data[0].name));
808 const char* value; config_sets[0].configuration_data[0].value >>= value;
809 CPPUNIT_ASSERT_EQUAL(std::string(
"3.14159"), std::string(value));
811 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 0-1"),
812 std::string(config_sets[0].configuration_data[1].name));
814 const char* value; config_sets[0].configuration_data[1].value >>= value;
815 CPPUNIT_ASSERT_EQUAL(std::string(
"2.71828"), std::string(value));
818 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 1"),
819 std::string(config_sets[1].
id));
820 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 1-0"),
821 std::string(config_sets[1].configuration_data[0].name));
823 const char* value; config_sets[1].configuration_data[0].value >>= value;
824 CPPUNIT_ASSERT_EQUAL(std::string(
"1.41421356"), std::string(value));
826 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 1-1"),
827 std::string(config_sets[1].configuration_data[1].name));
829 const char* value; config_sets[1].configuration_data[1].value >>= value;
830 CPPUNIT_ASSERT_EQUAL(std::string(
"1.7320508"), std::string(value));
838 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 0"), std::string(cfgSetRet0->id));
843 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(2),
844 cfgSetRet0->configuration_data.length());
845 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 0-0"),
846 std::string(cfgSetRet0->configuration_data[0].name));
848 const char* value; cfgSetRet0->configuration_data[0].value >>= value;
849 CPPUNIT_ASSERT_EQUAL(std::string(
"3.14159"), std::string(value));
851 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 0-1"),
852 std::string(cfgSetRet0->configuration_data[1].name));
854 const char* value; cfgSetRet0->configuration_data[1].value >>= value;
855 CPPUNIT_ASSERT_EQUAL(std::string(
"2.71828"), std::string(value));
863 CPPUNIT_ASSERT_EQUAL(std::string(
"ID 1"), std::string(cfgSetRet1->id));
868 CPPUNIT_ASSERT_EQUAL(CORBA::ULong(2),
869 cfgSetRet1->configuration_data.length());
870 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 1-0"),
871 std::string(cfgSetRet1->configuration_data[0].name));
873 const char* value; cfgSetRet1->configuration_data[0].value >>= value;
874 CPPUNIT_ASSERT_EQUAL(std::string(
"1.41421356"), std::string(value));
876 CPPUNIT_ASSERT_EQUAL(std::string(
"NAME 1-1"),
877 std::string(cfgSetRet1->configuration_data[1].name));
879 const char* value; cfgSetRet1->configuration_data[1].value >>= value;
880 CPPUNIT_ASSERT_EQUAL(std::string(
"1.7320508"), std::string(value));
887 CPPUNIT_FAIL(
"Exception not thrown.");
889 catch (SDOPackage::InvalidParameter expected) {}
891 sdoCfg->_remove_ref();
904 int main(
int argc,
char* argv[])
917 std::string arg(argv[i]);
918 std::string next_arg;
919 if (i + 1 < argc) next_arg = argv[i + 1];
922 if (arg ==
"--text") { format =
TEXT_OUT;
break; }
935 ofs.open(fname.c_str());
937 if ( arg ==
"--compiler" ) { format =
COMPILER_OUT;
break; }
938 if ( arg ==
"--cerr" ) { target = 1;
break; }
939 if ( arg ==
"--xsl" )
941 if (next_arg ==
"") xsl =
"default.xsl";
944 if ( arg ==
"--namespace" )
948 std::cerr <<
"no namespace specified" << std::endl;
958 CppUnit::TextUi::TestRunner runner;
960 runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
962 runner.addTest(CppUnit::TestFactoryRegistry::getRegistry(ns).makeTest());
963 CppUnit::Outputter* outputter = 0;
964 std::ostream* stream = target ? &std::cerr : &std::cout;
968 outputter =
new CppUnit::TextOutputter(&runner.result(),*stream);
971 std::cout <<
"XML_OUT" << std::endl;
972 outputter =
new CppUnit::XmlOutputter(&runner.result(),
974 static_cast<CppUnit::XmlOutputter*
>(outputter)->setStyleSheet(xsl);
977 outputter =
new CppUnit::CompilerOutputter(&runner.result(),*stream);
980 runner.setOutputter(outputter);
985 #endif // SdoConfiguration_cpp int main(int argc, char **argv)
virtual CORBA::Boolean add_configuration_set(const ConfigurationSet &configuration_set)
[CORBA interface] Add ConfigurationSet
virtual CORBA::Boolean set_configuration_set_values(const ConfigurationSet &configuration_set)
[CORBA interface] Set ConfigurationSet
virtual ConfigurationSet * get_active_configuration_set()
[CORBA interface] Get active ConfigurationSet
void test_remove_configuration_set()
remove_configuration_set()¥á¥½¥Ã¥É¤Î¥Æ¥¹¥È
~SdoConfigurationTests()
Destructor.
std::vector< std::pair< std::string, std::string > > NVList
CPPUNIT_TEST_SUITE_REGISTRATION(SdoConfiguration::SdoConfigurationTests)
void test_add_configuration_set_and_get_configuration_set()
add/get_configuration_set()¥á¥½¥Ã¥É¤Î¥Æ¥¹¥È
virtual void tearDown()
Test finalization.
virtual CORBA::Boolean remove_organization(const char *organization_id)
[CORBA interface] Remove the reference of Organization
virtual char * get_organization_id()
[CORBA interface] Get Organization ID
virtual CORBA::Boolean add_organization(Organization_ptr org)
[CORBA interface] Add Organization
virtual CORBA::Boolean add_service_profile(const ServiceProfile &sProfile)
[CORBA interface] Set SDO's ServiceProfile
void test_get_configuration_parameter_values()
get_configuration_parameter_values()¤Î¥Æ¥¹¥È
SDO Organization implementation class.
static Manager & instance()
Get instance of the manager.
void test_get_configuration_parameters()
virtual CORBA::Boolean activate_configuration_set(const char *config_id)
[CORBA interface] Activate ConfigurationSet
void test_set_device_profile_and_getDeviceProfile()
bool operator()(const ServiceProfile &svcProf)
RTComponent manager class.
virtual void setUp()
Test initialization.
void test_set_service_profile_and_getServiceProfile()
set_service_profile()¥á¥½¥Ã¥É¤ÈgetServiceProfile()¥á¥½¥Ã¥É¤Î¥Æ¥¹¥È
void test_activate_configuration_set_and_get_active_configuration_set()
activate_configuration_set()¥á¥½¥Ã¥É¡¢get_active_configuration_set()¥á¥½¥Ã¥É¡¢ get_configuration_sets()¥á¥½¥...
void test_remove_organization()
ServiceProfileFinder(const std::string &id)
void test_add_organization_and_getOrganizations()
CORBA::Long find(const CorbaSequence &seq, Functor f)
Return the index of CORBA sequence element that functor matches.
const OrganizationList getOrganizations()
Get a list of Organization of SDO.
PortableServer::POA_ptr m_pPOA
devProf
Configuration::set_device_profile (in DeviceProfile dProfile);.
Organization implementation class.
SdoConfigurationTests()
Constructor.
CORBA sequence utility template functions.
virtual CORBA::Boolean set_device_profile(const DeviceProfile &dProfile)
[CORBA interface] Set DeviceProfile of SDO
Organization_ptr getObjRef()
virtual ConfigurationSetList * get_configuration_sets()
[CORBA interface] Get a list of ConfigurationSet
Class represents a set of properties.
void test_set_configuration_parameter()
set_configuration_parameter()¤Î¥Æ¥¹¥È
void test_getServiceProfiles()
getServiceProfiles()¥á¥½¥Ã¥É¤Î¥Æ¥¹¥È
virtual ConfigurationSet * get_configuration_set(const char *config_id)
[CORBA interface] Get a ConfigurationSet
void test_remove_service_profile()
remove_service_profile()¥á¥½¥Ã¥É¤Î¥Æ¥¹¥È
Configuration implementation class.
void test_get_configuration_parameter_value()
get_configuration_parameter_value()¤Î¥Æ¥¹¥È
void test_set_configuration_set_values()
set_configuration_set_values()¥á¥½¥Ã¥É¤Î¥Æ¥¹¥È
const DeviceProfile getDeviceProfile()
Get the DeviceProfile of SDO.
RTObject_ptr getObjRef() const
[local interface] Get the object reference
virtual CORBA::Boolean remove_service_profile(const char *id)
[CORBA interface] Remove ServiceProfile
int usleep(useconds_t usec)
Stop a processing at specified micro second time.
virtual CORBA::Boolean remove_configuration_set(const char *config_id)
[CORBA interface] Remove ConfigurationSet