diff options
Diffstat (limited to 'ASNMP/asnmp/integer.h')
-rw-r--r-- | ASNMP/asnmp/integer.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/ASNMP/asnmp/integer.h b/ASNMP/asnmp/integer.h index 38d94bf7d68..d0dc2972742 100644 --- a/ASNMP/asnmp/integer.h +++ b/ASNMP/asnmp/integer.h @@ -22,16 +22,16 @@ Hewlett-Packard Company ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS. - Permission to use, copy, modify, distribute and/or sell this software - and/or its documentation is hereby granted without fee. User agrees - to display the above copyright notice and this license notice in all - copies of the software and any documentation of the software. User - agrees to assume all liability for the use of the software; Hewlett-Packard - makes no representations about the suitability of this software for any - purpose. It is provided "AS-IS without warranty of any kind,either express - or implied. User hereby grants a royalty-free license to any and all - derivatives based upon this software code base. -=====================================================================*/ + Permission to use, copy, modify, distribute and/or sell this software + and/or its documentation is hereby granted without fee. User agrees + to display the above copyright notice and this license notice in all + copies of the software and any documentation of the software. User + agrees to assume all liability for the use of the software; Hewlett-Packard + makes no representations about the suitability of this software for any + purpose. It is provided "AS-IS without warranty of any kind,either express + or implied. User hereby grants a royalty-free license to any and all + derivatives based upon this software code base. +=====================================================================*/ #include "asnmp/smival.h" @@ -43,35 +43,35 @@ // integers but is contained in a Value object for consistency // among the various types. // class objects may be set or get into Vb objects. -// +// // 32 bit unsigned integer class class ACE_Export SnmpUInt32: public SnmpSyntax // = TITLE - // Implement RFC 1920 Unsigned Integer SMI datatype + // Implement RFC 1920 Unsigned Integer SMI datatype { - - public: + + public: SnmpUInt32 (const unsigned long i = 0); - // default constructor + // default constructor SnmpUInt32( const SnmpUInt32 &c); // copy constructor - + virtual ~SnmpUInt32(); // destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden) virtual SmiUINT32 get_syntax(); // syntax type - SnmpUInt32& operator=( const unsigned long i); - // overloaded assignment - - SnmpUInt32& operator=( const SnmpUInt32 &uli); - // overloaded assignment - + SnmpUInt32& operator=( const unsigned long i); + // overloaded assignment + + SnmpUInt32& operator=( const SnmpUInt32 &uli); + // overloaded assignment + operator unsigned long(); - // otherwise, behave like an unsigned long int + // otherwise, behave like an unsigned long int virtual char *to_string(); // get a printable ASCII value @@ -89,14 +89,14 @@ class ACE_Export SnmpUInt32: public SnmpSyntax int valid_flag; char output_buffer[INTOUTBUF]; // contain string representation of object -}; +}; // 32 bit signed integer class class ACE_Export SnmpInt32: public SnmpSyntax { // = TITLE - // Implement RFC 1902 32 bit Integer SMI data object + // Implement RFC 1902 32 bit Integer SMI data object public: SnmpInt32 (const long i = 0); // constructor with value @@ -110,14 +110,14 @@ class ACE_Export SnmpInt32: public SnmpSyntax virtual SmiUINT32 get_syntax(); // syntax type - SnmpInt32& operator=( const long i); - // overloaded assignment - - SnmpInt32& operator=( const SnmpInt32 &li); - // overloaded assignment - + SnmpInt32& operator=( const long i); + // overloaded assignment + + SnmpInt32& operator=( const SnmpInt32 &li); + // overloaded assignment + operator long(); - // otherwise, behave like a long int + // otherwise, behave like a long int SnmpSyntax *clone() const; // create a new instance of this Value @@ -129,12 +129,12 @@ class ACE_Export SnmpInt32: public SnmpSyntax // get a printable ASCII value int valid() const; - // logical state of object + // logical state of object protected: int valid_flag; char output_buffer[INTOUTBUF]; - // contain string representation of object + // contain string representation of object }; -#endif +#endif |