20 #define BOOST_FUSION_INVOKE_MAX_ARITY 8 21 #define BOOST_FUSION_UNFUSED_MAX_ARITY 7 31 using namespace boost;
42 opc0 = tc->
provides(
"methods")->getOperation(
"o0");
43 opc0.setCaller( this->engine() );
44 opc1 = tc->
provides(
"methods")->getOperation(
"o1");
45 opc1.setCaller( this->engine() );
47 opc2 = tc->
provides(
"methods")->getOperation(
"m2");
48 opc2.setCaller( this->engine() );
49 opc3 = tc->
provides(
"methods")->getOperation(
"m3");
50 opc3.setCaller( this->engine() );
70 BOOST_REQUIRE( opc0.ready() );
71 BOOST_REQUIRE( opc1.ready() );
72 BOOST_REQUIRE( opc2.ready() );
73 BOOST_REQUIRE( opc3.ready() );
74 return opc0.ready() &&
81 double m0(
void) {
return opc0(); }
82 double m1(
int i) {
return opc1(i); }
83 double m2(
int i,
double d) {
return opc2(i,d); }
84 double m3(
int i,
double d,
bool c) {
return opc3(i,d,c); }
99 this->createOperationCallerFactories(tc);
100 tc->provides()->addAttribute(
"ret", ret );
116 dat->addAttribute(
"i", i);
129 createOperationCallerFactories0(target);
130 createOperationCallerFactories1(target);
131 createOperationCallerFactories2(target);
132 createOperationCallerFactories3(target);
133 createOperationCallerFactories4(target);
134 createOperationCallerFactories5(target);
135 createOperationCallerFactories6(target);
136 createOperationCallerFactories7(target);
double m3(int i, double d, bool c)
double m2(int i, double d)
OperationCaller< double(int)> opc1
void print(const std::string &what)
Service::shared_ptr provides()
OperationCaller< double(int, double)> opc2
bool assertMsg(bool b, const std::string &msg)
void createOperationCallerFactories(TaskContext *target)
void printNumber(const std::string &what, int n)
OperationCaller< double(void)> opc0
boost::shared_ptr< Service > shared_ptr
OperationCallerComponent(TaskContext *tc)
bool assertEqual(int a, int b)
OperationCaller< double(int, double, bool)> opc3
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.