Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / performance-tests / CSD_Strategy / TestServant / Foo_i.cpp
blob5d32033e6bdaeb99c79591f2799ed80cbeb6d4ff
1 #include "Foo_i.h"
2 #include "TestInf/AppShutdown.h"
3 #include "ace/Time_Value.h"
5 Foo_i::Foo_i()
7 for (unsigned i = 0; i < 5; i++)
9 this->op_count_[i] = 0;
14 Foo_i::~Foo_i()
19 void
20 Foo_i::op1()
22 this->op_count_[0]++;
26 void
27 Foo_i::op2(CORBA::Long value)
29 ACE_UNUSED_ARG(value);
30 this->op_count_[1]++;
34 CORBA::Long
35 Foo_i::op3(CORBA::Long value)
37 this->op_count_[2]++;
38 return value;
42 void
43 Foo_i::op4(CORBA::Long value)
45 ACE_UNUSED_ARG(value);
46 this->op_count_[3]++;
50 void
51 Foo_i::op5()
53 this->op_count_[4]++;
54 throw FooException();
58 void
59 Foo_i::done()
61 TheAppShutdown->client_done();
65 void
66 Foo_i::gather_stats(Foo_Statistics& stats)
68 for (unsigned i = 0; i < 5; i++)
70 stats.actual(i + 1, this->op_count_[i]);