From 5c1001ce4f585836e1f83c28d1df89aee42fb743 Mon Sep 17 00:00:00 2001 From: levine Date: Tue, 20 Oct 1998 02:34:57 +0000 Subject: changed include protection from #if !defined to ifndef, and added #pragma once, if possible --- ace/Time_Request_Reply.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'ace/Time_Request_Reply.h') diff --git a/ace/Time_Request_Reply.h b/ace/Time_Request_Reply.h index d92faa0f9ee..90e3f3b3e10 100644 --- a/ace/Time_Request_Reply.h +++ b/ace/Time_Request_Reply.h @@ -6,36 +6,37 @@ // // = LIBRARY // ACE -// +// // = FILENAME // ACE_Time_Request_Reply.h // -// = DESCRIPTION -// Define the format used to exchange messages between the +// = DESCRIPTION +// Define the format used to exchange messages between the // ACE_Time_Server and clerks. // // = AUTHOR // Prashant Jain -// +// // ============================================================================ #ifndef ACE_TIME_REQUEST_REPLY_H #define ACE_TIME_REQUEST_REPLY_H #include "ace/Time_Value.h" -#include "ace/SString.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/SString.h" + class ACE_Export ACE_Time_Request { // = TITLE // Message format for delivering requests to the ACE_Time Server. // // = DESCRIPTION - // This class is implemented to minimize data copying. + // This class is implemented to minimize data copying. // In particular, all marshaling is done in situ... public: enum Constants @@ -51,9 +52,9 @@ public: // Default constructor. ACE_Time_Request (ACE_INT32 msg_type, // Type of request. - const ACE_UINT32 time, - ACE_Time_Value *timeout = 0); // Max time waiting for request. - // Create a message. + const ACE_UINT32 time, + ACE_Time_Value *timeout = 0); // Max time waiting for request. + // Create a message. void init (void); // Initialize length_ in order to ensure correct byte ordering @@ -61,7 +62,7 @@ public: // Get the fixed size of message ssize_t size (void) const; - + // = Set/get the type of the message. ACE_INT32 msg_type (void) const; void msg_type (ACE_INT32); @@ -88,7 +89,7 @@ public: // Print out the values of the message for debugging purposes. private: - // = The 5 fields in the struct are transmitted to the server. + // = The 5 fields in the struct are transmitted to the server. // The remaining 2 fields are not tranferred -- they are used only on // the server-side to simplify lookups. @@ -98,7 +99,7 @@ private: // Type of the request (i.e., ) ACE_UINT32 block_forever_; - // Indicates if we should block forever. If 0, then + // Indicates if we should block forever. If 0, then // and indicates how long we should wait. ACE_UINT32 sec_timeout_; -- cgit v1.2.1