summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.h
blob: 8dd569d15435c3664f1b88669dd7ba59207ff8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef FOO_STATISTICS_H
#define FOO_STATISTICS_H

#include "CSD_PT_TestServant_Export.h"


class CSD_PT_TestServant_Export Foo_Statistics
{
  public:

    Foo_Statistics();
    virtual ~Foo_Statistics();

    void init(unsigned num_clients, unsigned num_loops);

    void expected(unsigned op_num, unsigned count);
    void actual(unsigned op_num, unsigned count);

    bool actual_vs_expected();

    unsigned total() const;


  private:

    unsigned num_clients_;
    unsigned num_loops_;
    unsigned expected_[5];
    unsigned actual_[5];
};

#endif