summaryrefslogtreecommitdiff
path: root/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.h
blob: e864489f9b3e2c4c491074fef883940c9edd79e3 (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
33
// $Id$
#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