Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / InterfaceRepo / Latency_Test / Latency_Query_Client.h
blob9debce055302094ed08e13a518a7c1c57897ea5d
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 (void);
33 /// Destructor
34 ~Latency_Query_Client (void);
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 (void);
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 (void);
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 */