#include <address.h>
Inheritance diagram for GenAddress:
Public Member Functions | |
| GenAddress () | |
| Construct an empty invalid generic address object. | |
| GenAddress (const char *addr, const Address::addr_type use_type=Address::type_invalid) | |
| Construct a generic address from a string. | |
| GenAddress (const Address &addr) | |
| Construct a generic address from an Address object. | |
| GenAddress (const GenAddress &addr) | |
| Construct a generic address from another generic address object. | |
| ~GenAddress () | |
| Destructor, free memory. | |
| SmiUINT32 | get_syntax () const |
| Return the syntax. | |
| virtual int | get_asn1_length () const |
| Return the space needed for serialization. | |
| SnmpSyntax * | clone () const |
| Clone this object. | |
| GenAddress & | operator= (const GenAddress &addr) |
| Overloaded assignment operator for a GenAddress. | |
| GenAddress & | operator= (const Address &addr) |
| Overloaded assignment operator for a Address. | |
| SnmpSyntax & | operator= (const SnmpSyntax &val) |
| Map other SnmpSyntax objects to GenAddress. | |
| virtual const char * | get_printable () const |
| Get a printable ASCII value of the address. | |
| virtual | operator const char * () const |
| Overloaded operator for streaming output. | |
| virtual int | get_length () const |
| Get the length of the binary address (accessible through operator[]). | |
| void | clear () |
| Reset the object. | |
| virtual addr_type | get_type () const |
| Return the type of the address. | |
| const IpAddress & | cast_ipaddress () const |
| Access the protected address. | |
| const UdpAddress & | cast_udpaddress () const |
| Access the protected address. | |
Protected Member Functions | |
| virtual bool | parse_address (const char *addr) |
| virtual bool | parse_address (const char *addr, const Address::addr_type use_type) |
| virtual void | format_output () const |
| virtual bool | is_gen_address () const |
| Is this a GenAddress object. | |
Protected Attributes | |
| Address * | address |
| char | output_buffer [1] |
|
|
Construct an empty invalid generic address object.
|
|
||||||||||||
|
Construct a generic address from a string. To optimize the speed of the parsing method, use_type can be used to indicate that the address string is of the specified type.
|
|
|
Construct a generic address from an Address object.
|
|
|
Construct a generic address from another generic address object.
|
|
|
Destructor, free memory.
|
|
|
Access the protected address. The caller must make sure that this GenAddress object ist valid() and is of the right type (get_type()). |
|
|
Access the protected address. The caller must make sure that this GenAddress object ist valid() and is of the right type (get_type()). |
|
|
Reset the object.
Reimplemented from Address. |
|
|
Clone this object.
Implements SnmpSyntax. |
|
|
Implements Address. |
|
|
Return the space needed for serialization.
Implements Address. |
|
|
Get the length of the binary address (accessible through operator[]).
Implements Address. |
|
|
Get a printable ASCII value of the address.
Implements SnmpSyntax. |
|
|
Return the syntax.
Implements SnmpSyntax. Definition at line 992 of file address.h. References SmiUINT32, and sNMP_SYNTAX_NULL. |
|
|
Return the type of the address.
Implements Address. |
|
|
Is this a GenAddress object.
Reimplemented from Address. |
|
|
Overloaded operator for streaming output.
Implements Address. |
|
|
Map other SnmpSyntax objects to GenAddress.
Implements Address. |
|
|
Overloaded assignment operator for a Address.
|
|
|
Overloaded assignment operator for a GenAddress.
|
|
||||||||||||
|
|
|
|
Implements Address. Definition at line 1105 of file address.h. References Address::type_invalid. |
|
|
|
|
|
|
1.3.2