diff options
Diffstat (limited to 'TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.h')
-rw-r--r-- | TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.h b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.h new file mode 100644 index 00000000000..1400b2bd059 --- /dev/null +++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.h @@ -0,0 +1,77 @@ +// -*- C++ -*- +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/orbsvcs/tests/InterfaceRepo +// +// = FILENAME +// Latency_Query_Client.h +// +// = DESCRIPTION +// This class tests the latency of queries made on the IFR. +// +// = AUTHOR +// Jeff Parsons <parsons@isis-server.isis.vanderbilt.edu> +// +// ============================================================================ + +#if !defined (LATENCY_QUERY_CLIENT_H) +#define LATENCY_QUERY_CLIENT_H + +#include "tao/IFR_Client/IFR_BasicC.h" +#include "tao/ORB.h" + +class Latency_Query_Client +{ + // = TITLE + // Querying IFR Client Implementation + // + // = DESCRIPTION + // Class wrapper for a client which queries the Interface Repository. +public: + Latency_Query_Client (void); + // Constructor + + ~Latency_Query_Client (void); + // Destructor + + int init (int argc, + char *argv[]); + // Initialize the ORB and get the IFR object reference. + + int run (void); + // Execute test code. +private: + int parse_args (int argc, + char *argv[]); + // Process the command line arguments. + + int populate_ifr (void); + // Put in something to query about. + +private: + bool debug_; + // Toggle debugging output. + + bool do_dump_history_; + // Toggle saving of dump history. + + CORBA::ULong iterations_; + // Number of queries in a run. + + CORBA::ORB_var orb_; + // Storage of the ORB reference. + + CORBA::Repository_var repo_; + // Storage of the IFR reference. + +// CORBA::AliasDef_var tdef_; + // Storage of the typedef definition that we will query. + + CORBA::AttributeDef_var attr_; + // Storage of the attribute definition we will query. +}; + +#endif /* LATENCY_QUERY_CLIENT_H */ |