summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Logger/Logging_Test_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Logger/Logging_Test_i.h')
-rw-r--r--TAO/orbsvcs/tests/Logger/Logging_Test_i.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/TAO/orbsvcs/tests/Logger/Logging_Test_i.h b/TAO/orbsvcs/tests/Logger/Logging_Test_i.h
index 7bd6d8d2622..748473ea51b 100644
--- a/TAO/orbsvcs/tests/Logger/Logging_Test_i.h
+++ b/TAO/orbsvcs/tests/Logger/Logging_Test_i.h
@@ -19,16 +19,21 @@
//
// ============================================================================
-#if !defined (_LOG_CLIENT_H)
+#ifndef _LOG_CLIENT_H
#define _LOG_CLIENT_H
#include "ace/Get_Opt.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "tao/corba.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/LoggerC.h"
#include "orbsvcs/Naming/Naming_Utils.h"
-class Logger_Client
+class Logger_Client
{
// = TITLE
// Defines a class that encapsulates behaviour of the Logger
@@ -51,14 +56,14 @@ public:
int init (int argc, char **argv);
// Initialize the client communication endpoint with server.
-
+
int run (void);
// Execute client example code.
-
+
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);
@@ -66,20 +71,20 @@ private:
int init_naming_service (CORBA::Environment &env);
// Initialises the name server and resolves the logger_factory
-
+
int init_loggers (CORBA::Environment &env);
// Instantiates the 2 logger member variables
-
+
void show_record (Logger::Log_Record &newrec);
// Shows contents of the record (for debugging purposes).
-
+
TAO_Naming_Client my_name_client_;
// An instance of the name client used for resolving the factory
// objects.
CORBA::ORB_var orb_;
// Keep a pointer to the ORB for easy access
-
+
int argc_;
// # of arguments on the command line.
@@ -88,7 +93,7 @@ private:
Logger_Factory_var factory_;
// A pointer to the Logger_Factory; used in init_loggers
-
+
Logger_var logger_1_;
// Logger obj ref.