diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /examples/Reactor/Multicast/Log_Wrapper.h | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'examples/Reactor/Multicast/Log_Wrapper.h')
-rw-r--r-- | examples/Reactor/Multicast/Log_Wrapper.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/examples/Reactor/Multicast/Log_Wrapper.h b/examples/Reactor/Multicast/Log_Wrapper.h index 859ed3c3ae6..75da02839c5 100644 --- a/examples/Reactor/Multicast/Log_Wrapper.h +++ b/examples/Reactor/Multicast/Log_Wrapper.h @@ -4,26 +4,31 @@ // log_wrapper.h #include "ace/Profile_Timer.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/INET_Addr.h" #include "ace/SOCK_Dgram_Mcast.h" -#if !defined (_LOG_WRAPPER_H) +#ifndef _LOG_WRAPPER_H #define _LOG_WRAPPER_H -class Log_Wrapper +class Log_Wrapper // = TITLE // Provide a wrapper around sending log messages via IP - // multicast. + // multicast. { public: Log_Wrapper (void); ~Log_Wrapper (void); // = Types of logging messages. - enum ACE_Log_Priority + enum ACE_Log_Priority { LOG_MESSAGE, - LOG_DEBUG, + LOG_DEBUG, LOG_WARNING, LOG_ERROR, LOG_EMERG @@ -31,12 +36,12 @@ public: int open (const int port, const char* mcast_addr); // get an object reference from an orbixd - + int log_message (ACE_Log_Priority type, char *message); // send a string to the logger // = Format of the logging record. - struct ACE_Log_Record + struct ACE_Log_Record { u_long sequence_number; ACE_Log_Priority type; |