[AGENT++] missing MibLeaf::set_value(const long)

Claus Klein claus.klein at arcormail.de
Sat Mar 19 21:05:57 CET 2011


Why is there not a symmetric set of set_value() of set and get_value()  
functions?

When I want to change a SnmpInt32 MIB value with set_value(5) for  
example, it will result in a wrong type (unsigned).

virtual Vbx 	get_value () const
  	Get the value of the receiver.
virtual int 	get_value (NS_SNMP SnmpSyntax &s) const
  	Get the value of the receiver.
virtual int 	get_value (int &i) const
  	Get the value of the receiver.
virtual int 	get_value (long &i) const
  	Get the value of the receiver.
virtual int 	get_value (unsigned long &i) const
  	Get the value of the receiver.
virtual int 	get_value (char *c) const
  	Get the value of the receiver.
virtual void 	set_value (const NS_SNMP SnmpSyntax &)
  	Set the value of the receiver by value.
virtual void 	set_value (const unsigned long)
  	Set the unsigned integer value of the receiver.
virtual int 	set_value (const Vbx &)
  	Set the value of the receiver from a variable binding and checks  
for validity of the variable binding and compatible syntax and oid.

With regards

Claus




More information about the AGENTPP mailing list