Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #define BOOST_FUSION_INVOKE_MAX_ARITY 8
00021 #define BOOST_FUSION_UNFUSED_MAX_ARITY 7
00022
00023 #include "operations_fixture.hpp"
00024 #include <iostream>
00025 #include <TaskContext.hpp>
00026 #include <OperationCaller.hpp>
00027 #include <Operation.hpp>
00028 #include <Service.hpp>
00029
00030 using namespace std;
00031 using namespace boost;
00032 using namespace RTT;
00033 using namespace RTT::detail;
00034
00035 void OperationsFixture::createOperationCallerFactories1(TaskContext* target)
00036 {
00037 Service::shared_ptr to = target->provides("methods");
00038
00039 to->addOperation("m1r", &OperationsFixture::m1r, this).doc("M1r");
00040 to->addOperation("m1cr", &OperationsFixture::m1cr, this).doc("M1cr");
00041
00042 to->addOperation("m1", &OperationsFixture::m1, this).doc("M1").arg("a", "ad");
00043
00044
00045 to->addOperation("o1r", &OperationsFixture::m1r, this, OwnThread).doc("M1r");
00046 to->addOperation("o1cr", &OperationsFixture::m1cr, this, OwnThread).doc("M1cr");
00047
00048 to->addOperation("o1", &OperationsFixture::m1, this, OwnThread).doc("M1").arg("a", "ad");
00049 }