summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Logging_Service
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/orbsvcs/Logging_Service
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/orbsvcs/Logging_Service')
-rw-r--r--TAO/orbsvcs/Logging_Service/Logging_Service_i.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/TAO/orbsvcs/Logging_Service/Logging_Service_i.h b/TAO/orbsvcs/Logging_Service/Logging_Service_i.h
index 653483fe6a9..e240453fcab 100644
--- a/TAO/orbsvcs/Logging_Service/Logging_Service_i.h
+++ b/TAO/orbsvcs/Logging_Service/Logging_Service_i.h
@@ -20,10 +20,15 @@
//
// ============================================================================
-#if !defined (_LOG_SERVER_H)
+#ifndef _LOG_SERVER_H
#define _LOG_SERVER_H
#include "ace/Get_Opt.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "ace/Log_Msg.h"
#include "tao/TAO.h"
#include "orbsvcs/CosNamingC.h"
@@ -51,17 +56,17 @@ public:
int init (int argc,
char **argv,
- CORBA::Environment& env);
+ CORBA::Environment& env);
// Initialize the Logger_Server state - parsing arguments and ...
int run (CORBA::Environment& env);
- // Run the ORB.
+ // Run the ORB.
Logger_ptr make_logger (const char *name,
- CORBA::Environment &_env);
+ CORBA::Environment &_env);
// This function creates and returns a logger with the given <name>.
// Currently, <name> is unused.
-
+
private:
int parse_args (void);
// Parses the commandline arguments.
@@ -79,7 +84,7 @@ private:
Logger_Factory_i factory_impl_;
// Implementation object of the Logger_Factory.
-
+
Logger_Factory_var factory_;
// Factory_var to register with NamingService.
@@ -91,7 +96,7 @@ private:
char* service_name_;
// The id to give the Logger_Factory instance (defaults to
- // "LoggingService")
+ // "LoggingService")
};
#endif /* _LOG_SERVER_H */