summaryrefslogtreecommitdiff
path: root/ace/Addr.h
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 /ace/Addr.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/Addr.h')
-rw-r--r--ace/Addr.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/ace/Addr.h b/ace/Addr.h
index 4e2985bf98b..1d9a2051ed8 100644
--- a/ace/Addr.h
+++ b/ace/Addr.h
@@ -5,13 +5,13 @@
//
// = LIBRARY
// ace
-//
+//
// = FILENAME
// Addr.h
//
// = AUTHOR
-// Doug Schmidt
-//
+// Doug Schmidt
+//
// ============================================================================
#ifndef ACE_ADDR_H
@@ -20,10 +20,10 @@
#include "ace/ACE.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
+# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-class ACE_Export ACE_Addr
+class ACE_Export ACE_Addr
{
// = TITLE
// Defines the base class for the "address family independent"
@@ -32,26 +32,26 @@ public:
// = Initialization and termination methods.
ACE_Addr (int type = -1,
int size = -1);
- // Initializes instance variables.
+ // Initializes instance variables.
virtual ~ACE_Addr (void);
// Destructor.
- // = Get/set the size of the address.
+ // = Get/set the size of the address.
int get_size (void) const;
// Return the size of the address.
void set_size (int size);
- // Sets the size of the address.
+ // Sets the size of the address.
- // = Get/set the type of the address.
+ // = Get/set the type of the address.
int get_type (void) const;
- // Get the type of the address.
+ // Get the type of the address.
void set_type (int type);
- // Set the type of the address.
+ // Set the type of the address.
virtual void *get_addr (void) const;
// Return a pointer to the address.
@@ -93,10 +93,10 @@ public:
// Declare the dynamic allocation hooks.
protected:
- int addr_type_;
+ int addr_type_;
// e.g., AF_UNIX, AF_INET, AF_SPIPE, etc.
- int addr_size_;
+ int addr_size_;
// Number of bytes in the address.
};