summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Log/Basic/TLS_Client.h')
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/TLS_Client.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
new file mode 100644
index 00000000000..6e4980a65fb
--- /dev/null
+++ b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
@@ -0,0 +1,63 @@
+// -*- C++ -*-
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ORBSVCS Telecom Log Service examples
+//
+// = FILENAME
+// TLS_Client
+//
+// = AUTHOR
+// D A Hanvey (d.hanvey@qub.ac.uk)
+//
+// ============================================================================
+
+#ifndef TLS_CLIENT_H
+#define TLS_CLIENT_H
+
+#include "orbsvcs/DsLogAdminC.h"
+#include "orbsvcs/CosNamingC.h"
+
+class TLS_Client
+{
+ // = TITLE
+ // Telecom Log Service Client
+ // = DESCRIPTION
+ // This client demonstates how to use the log service.
+ public:
+ // = Initialization and Termination
+ TLS_Client (void);
+ ~TLS_Client ();
+
+ void init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ // Init the Client.
+
+ void run_tests (ACE_ENV_SINGLE_ARG_DECL);
+ // Run the tests..
+
+ protected:
+ void init_ORB (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ // Initializes the ORB.
+
+ void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
+ // Try to get hold of a running naming service.
+
+ void resolve_TLS_Basic_factory (ACE_ENV_SINGLE_ARG_DECL);
+ // Try to resolve the TLS factory from the Naming service.
+
+ // = Data Members
+ CORBA::ORB_var orb_;
+ // The ORB that we use.
+
+ CosNaming::NamingContext_var naming_context_;
+ // Handle to the name service.
+
+ DsLogAdmin::BasicLogFactory_var basic_log_factory_;
+ // The basic log factory from the Log Service.
+
+
+
+};
+#endif /* TLS_CLIENT_H */