61 #ifdef SNMP_PP_NAMESPACE
65 #define INTOUTBUF 15 // largest ASCII formatted integer
91 smival.value.uNumber = i;
102 , valid_flag(c.valid_flag)
129 smival.value.uNumber = i;
162 operator unsigned long()
const {
return smival.value.uNumber; };
167 virtual const char *get_printable()
const;
182 bool valid()
const {
return valid_flag; }
187 int get_asn1_length()
const;
193 { smival.value.uNumber = 0; valid_flag =
true; m_changed =
true; }
225 smival.value.sNumber = i;
236 , valid_flag(c.valid_flag)
263 smival.value.sNumber = i;
296 operator long ()
const {
return (
long) smival.value.sNumber; }
301 const char *get_printable()
const;
315 bool valid()
const {
return valid_flag; }
320 int get_asn1_length()
const;
326 { smival.value.sNumber = 0; valid_flag =
true; m_changed =
true; }
334 #ifdef SNMP_PP_NAMESPACE
#define sNMP_SYNTAX_UINT32
virtual SmiUINT32 get_syntax() const
Return the syntax.
SNMP_PP_MUTABLE bool m_changed
void clear()
Reset the object.
virtual SnmpSyntax * clone() const
Clone operator.
virtual ~SnmpInt32()
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden).
32 bit signed integer class.
SnmpUInt32(const SnmpUInt32 &c)
Copy constructor.
bool valid() const
Return validity of the object.
virtual ~SnmpUInt32()
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden).
SnmpInt32(const long i=0)
Constructor with value.
SnmpInt32(const SnmpInt32 &c)
Copy constructor.
32 bit unsigned integer class.
SnmpSyntax * clone() const
Clone operator.
#define sNMP_SYNTAX_INT32
SNMP_PP_MUTABLE bool m_changed
void clear()
Reset the object.
SnmpUInt32(const unsigned long i=0)
Constructor with value (defaults to 0).
An "abstract" (pure virtual) class that serves as the base class for all specific SNMP syntax types...
virtual SmiUINT32 get_syntax() const
Return the syntax.
bool valid() const
Return validity of the object.