26 using namespace boost;
42 double&
m0r() {
return ret; }
43 const double&
m0cr() {
return ret; }
46 bool comstr(
const std::string& cs) {
return !cs.empty(); }
48 double m1r(
double& a) { a = 2*a;
return a; }
49 double m1cr(
const double& a) {
return a; }
52 void vm0(
void) {
return; }
53 double m0(
void) {
return -1.0; }
54 double m1(
int i) {
if (i ==1)
return -2.0;
else return 2.0; }
55 double m2(
int i,
double d) {
if ( i == 1 && d == 2.0 )
return -3.0;
else return 3.0; }
56 double m3(
int i,
double d,
bool c) {
if ( i == 1 && d == 2.0 && c ==
true)
return -4.0;
else return 4.0; }
57 double m4(
int i,
double d,
bool c, std::string s) {
if ( i == 1 && d == 2.0 && c ==
true && s ==
"hello")
return -5.0;
else return 5.0; }
58 double m5(
int i,
double d,
bool c, std::string s,
float f) {
if ( i == 1 && d == 2.0 && c ==
true && s ==
"hello" && f == 5.0f)
return -6.0;
else return 6.0; }
59 double m6(
int i,
double d,
bool c, std::string s,
float f,
char h) {
if ( i == 1 && d == 2.0 && c ==
true && s ==
"hello" && f == 5.0f && h ==
'a')
return -7.0;
else return 7.0; }
60 double m7(
int i,
double d,
bool c, std::string s,
float f,
char h,
unsigned int st) {
if ( i == 1 && d == 2.0 && c ==
true && s ==
"hello" && f == 5.0f && h ==
'a' && st == 7)
return -8.0;
else return 8.0; }
68 void m0except(
void) {
throw std::runtime_error(
"exception"); }
70 void print(
const std::string& what) {
cout <<
"print: " << what <<
endl; }
74 throw std::runtime_error(
"OperationsFixture::fail() called.");
84 throw std::runtime_error(
"OperationsFixture::assertBool( b ) failed (arg was false).");
95 cerr <<
"AssertEqual failed: a != b " << a <<
" != " << b <<
"." <<
endl;
96 throw std::runtime_error(
"OperationsFixture::assertEqual( a, b ) failed (a != b).");
102 cout <<
"Asserted :" << msg <<
endl;
103 throw std::runtime_error(
"OperationsFixture::assertMsg( b, msg ) faild (b was false).");
116 void createOperationCallerFactories(
TaskContext* target);
117 void createOperationCallerFactories0(
TaskContext* target);
118 void createOperationCallerFactories1(
TaskContext* target);
119 void createOperationCallerFactories2(
TaskContext* target);
120 void createOperationCallerFactories3(
TaskContext* target);
121 void createOperationCallerFactories4(
TaskContext* target);
122 void createOperationCallerFactories5(
TaskContext* target);
123 void createOperationCallerFactories6(
TaskContext* target);
124 void createOperationCallerFactories7(
TaskContext* target);
double m6(int i, double d, bool c, std::string s, float f, char h)
void print(const std::string &what)
int sleepAndIncrement(int seconds)
bool assertMsg(bool b, const std::string &msg)
void printNumber(const std::string &what, int n)
double m5(int i, double d, bool c, std::string s, float f)
void * returnAddressOf(int &i)
double m4(int i, double d, bool c, std::string s)
double m1cr(const double &a)
basic_ostreams & endl(basic_ostreams &s)
unsigned int sleep(unsigned int s)
double m3(int i, double d, bool c)
bool assertEqual(int a, int b)
double m7(int i, double d, bool c, std::string s, float f, char h, unsigned int st)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
const void * returnAddressOfConst(const int &i)
double m2(int i, double d)
bool comstr(const std::string &cs)