Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / orbsvcs / tests / InterfaceRepo / Latency_Test / Latency_Query_Client.h
blob26eb07c7b76e0e3275a7d6205341da190a61152c
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Latency_Query_Client.h
7 * This class tests the latency of queries made on the IFR.
9 * @author Jeff Parsons <parsons@isis-server.isis.vanderbilt.edu>
11 //=============================================================================
14 #if !defined (LATENCY_QUERY_CLIENT_H)
15 #define LATENCY_QUERY_CLIENT_H
17 #include "tao/IFR_Client/IFR_BasicC.h"
18 #include "tao/ORB.h"
20 /**
21 * @class Latency_Query_Client
23 * @brief Querying IFR Client Implementation
25 * Class wrapper for a client which queries the Interface Repository.
27 class Latency_Query_Client
29 public:
30 /// Constructor
31 Latency_Query_Client ();
33 /// Destructor
34 ~Latency_Query_Client ();
36 /// Initialize the ORB and get the IFR object reference.
37 int init (int argc,
38 ACE_TCHAR *argv[]);
40 /// Execute test code.
41 int run ();
42 private:
43 /// Process the command line arguments.
44 int parse_args (int argc,
45 ACE_TCHAR *argv[]);
47 /// Put in something to query about.
48 int populate_ifr ();
50 private:
51 /// Toggle debugging output.
52 bool debug_;
54 /// Toggle saving of dump history.
55 bool do_dump_history_;
57 /// Number of queries in a run.
58 CORBA::ULong iterations_;
60 /// Storage of the ORB reference.
61 CORBA::ORB_var orb_;
63 /// Storage of the IFR reference.
64 CORBA::Repository_var repo_;
66 // CORBA::AliasDef_var tdef_;
67 // Storage of the typedef definition that we will query.
69 /// Storage of the attribute definition we will query.
70 CORBA::AttributeDef_var attr_;
73 #endif /* LATENCY_QUERY_CLIENT_H */