summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Logger/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Logger/client.h')
-rw-r--r--TAO/orbsvcs/tests/Logger/client.h99
1 files changed, 0 insertions, 99 deletions
diff --git a/TAO/orbsvcs/tests/Logger/client.h b/TAO/orbsvcs/tests/Logger/client.h
deleted file mode 100644
index 51cd09d3fd3..00000000000
--- a/TAO/orbsvcs/tests/Logger/client.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/orbsvcs/tests/Logger
-//
-// = FILENAME
-// client.h
-//
-// = DESCRIPTION
-// This program tests an implementation of a logger service. It uses the
-// <Logger_Factory> server to create a number of logger objects.
-// It then uses their object references to test functions supported
-// by the logger server.
-//
-// = AUTHORS
-// Sergio Flores-Gaitan <sergio@cs.wustl.edu>
-// Matt Braun <mjb2@cec.wustl.edu>
-//
-// ============================================================================
-
-#include "ace/Get_Opt.h"
-#include "tao/corba.h"
-#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/LoggerC.h"
-
-class Logger_Client
-{
- // = TITLE
- // Defines a class that encapsulates behaviour of the Logger
- // client example. Provides a better understanding of the logic
- // in an object oriented way.
- //
- // = DESCRIPTION
- // This class declares an interface to run the example client for
- // Logger CORBA server. All the complexity for initializing the
- // server is hidden in the class. Just the <run> interface is
- // needed.
-public:
- // = Constructor and destructor.
- Logger_Client (void);
- ~Logger_Client (void);
-
- int run (void);
- // Execute client example code.
-
- int init (int argc, char **argv);
- // Initialize the client communication endpoint with server.
-
-private:
- int parse_args (void);
- // Parses the arguments passed on the command line.
-
- void init_record (Logger::Log_Record &newrec,
- Logger::Log_Priority lp,
- const char *msg);
- // Prepares the <Log_Record> for logging.
-
- void show_record (Logger::Log_Record &newrec);
- // Shows contents of the record (for debugging purposes)
-
- CORBA::Object_var
- resolve_name (CosNaming::Name &name, char* namestring,
- CosNaming::NamingContext_var context,
- CORBA::Environment &env);
- // Take the Name, give it the proper string name, and
- // resolve it
- int
- nesting_test (CosNaming::Name &name, char* namestring,
- CosNaming::NamingContext_var context,
- CORBA::Environment &env);
- // Test the nesting context
-
- int argc_;
- // # of arguments on the command line.
-
- char **argv_;
- // arguments from command line.
-
- int test_nesting_;
- // Test nested naming context or not.
-
- CORBA::ORB_var orb_;
- // Keep a pointer to the orb, to avoid accidental deletes.
-
- Logger_var logger_1_;
- // Logger obj ref.
-
- Logger_var logger_2_;
- // Logger obj ref.
-
- // @@ Matt, I recommend that once you finish implementing the
- // TAO_Naming_Client class that you include an instance of it in
- // this class, which can then do the (simplified) initialization of
- // the Naming Service CLIENT.
-};
-