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 /ace/Token_Request_Reply.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 'ace/Token_Request_Reply.h')
-rw-r--r-- | ace/Token_Request_Reply.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/ace/Token_Request_Reply.h b/ace/Token_Request_Reply.h index 6c46c1f970c..072842c23cf 100644 --- a/ace/Token_Request_Reply.h +++ b/ace/Token_Request_Reply.h @@ -5,37 +5,38 @@ // // = LIBRARY // ACE -// +// // = FILENAME // Token_Request_Reply.h // -// = DESCRIPTION -// Define the format used to exchange messages between the +// = DESCRIPTION +// Define the format used to exchange messages between the // ACE_Token Server and its clients. // // = AUTHOR // Douglas C. Schmidt (schmidt@cs.wustl.edu) // Tim Harrison (harrison@cs.wustl.edu) -// +// // ============================================================================ #ifndef ACE_TOKEN_REQUEST_REPLY_H #define ACE_TOKEN_REQUEST_REPLY_H #include "ace/Local_Tokens.h" -#include "ace/Time_Value.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/Time_Value.h" + class ACE_Export ACE_Token_Request { // = TITLE // Message format for delivering requests to the ACE_Token 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 OPERATION @@ -52,11 +53,11 @@ public: // Default constructor. ACE_Token_Request (int token_type, - int proxy_type, - ACE_UINT32 operation, - const char token_name[], - const char client_id[], - const ACE_Synch_Options &options); + int proxy_type, + ACE_UINT32 operation, + const char token_name[], + const char client_id[], + const ACE_Synch_Options &options); // token_type - MUTEX, RWLOCK // proxy_type - MUTEX, RLOCK, WLOCK (acquires mean different things) // operation - method @@ -111,7 +112,7 @@ public: // Print out the values of the message for debugging purposes. private: - // = The 5 fields in the <Transfer> struct are transmitted to the server. + // = The 5 fields in the <Transfer> struct are transmitted to the server. // The remaining 2 fields are not tranferred -- they are used only on // the server-side to simplify lookups. @@ -155,7 +156,7 @@ private: // The data portion contains the <tokenName_> followed by a ':' // followed by the <clientId_>. } transfer_; - + char *token_name_; // Pointer to the beginning of the token name in this->data_. @@ -172,7 +173,7 @@ class ACE_Export ACE_Token_Reply // Message format for delivering replies from the ACE_Token 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: ACE_Token_Reply (void); |