|
SNMP++
3.3.4
|
#include <address.h>


Public Member Functions | |
| GenAddress () | |
| Construct an empty invalid generic address object. More... | |
| GenAddress (const char *addr, const Address::addr_type use_type=Address::type_invalid) | |
| Construct a generic address from a string. More... | |
| GenAddress (const Address &addr) | |
| Construct a generic address from an Address object. More... | |
| GenAddress (const GenAddress &addr) | |
| Construct a generic address from another generic address object. More... | |
| ~GenAddress () | |
| Destructor, free memory. More... | |
| SmiUINT32 | get_syntax () const |
| Return the syntax. More... | |
| virtual int | get_asn1_length () const |
| Return the space needed for serialization. More... | |
| SnmpSyntax * | clone () const |
| Clone this object. More... | |
| virtual GenAddress & | operator= (const GenAddress &addr) |
| Overloaded assignment operator for a GenAddress. More... | |
| virtual Address & | operator= (const Address &addr) |
| Overloaded assignment operator for a Address. More... | |
| virtual SnmpSyntax & | operator= (const SnmpSyntax &val) |
| Map other SnmpSyntax objects to GenAddress. More... | |
| virtual const char * | get_printable () const |
| Get a printable ASCII value of the address. More... | |
| virtual | operator const char * () const |
| Overloaded operator for streaming output. More... | |
| virtual int | get_length () const |
| Get the length of the binary address (accessible through operator[]). More... | |
| void | clear () |
| Reset the object. More... | |
| virtual addr_type | get_type () const |
| Return the type of the address. More... | |
| const IpAddress & | cast_ipaddress () const |
| Access the protected address. More... | |
| const UdpAddress & | cast_udpaddress () const |
| Access the protected address. More... | |
Public Member Functions inherited from Address | |
| Address () | |
| Default constructor, clears the buffer and sets valid flag to false. More... | |
| virtual | ~Address () |
| Allow destruction of derived classes. More... | |
| virtual bool | valid () const |
| Return if the object contains a valid address. More... | |
| unsigned char & | operator[] (const int position) |
| Access as an array (read and write). More... | |
| unsigned char | operator[] (const int position) const |
| Access as an array (read only). More... | |
| virtual Address & | operator= (const char *str) |
| virtual unsigned int | hashFunction () const |
Public Member Functions inherited from SnmpSyntax | |
| virtual | ~SnmpSyntax () |
| Virtual destructor to ensure deletion of derived classes... More... | |
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. More... | |
Protected Member Functions inherited from Address | |
| void | trim_white_space (char *ptr) |
| Trim of whitespaces at the start and the end of the string. More... | |
Protected Member Functions inherited from SnmpSyntax | |
| SnmpSyntax () | |
Protected Attributes | |
| Address * | address |
| char | output_buffer [1] |
Protected Attributes inherited from Address | |
| SNMP_PP_MUTABLE bool | addr_changed |
| bool | valid_flag |
| unsigned char | address_buffer [ADDRBUF] |
Protected Attributes inherited from SnmpSyntax | |
| SmiVALUE | smival |
Additional Inherited Members | |
Public Types inherited from Address | |
| enum | addr_type { type_ip, type_ipx, type_udp, type_ipxsock, type_mac, type_invalid } |
| Type returned by Address::get_type(). More... | |
| enum | version_type { version_ipv4, version_ipv6 } |
| Type returned by IpAddress::get_ip_version() and UdpAddress::get_ip_version(). More... | |
| GenAddress::GenAddress | ( | ) |
Construct an empty invalid generic address object.
| GenAddress::GenAddress | ( | const char * | addr, |
| const Address::addr_type | use_type = Address::type_invalid |
||
| ) |
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.
| addr | - address string |
| use_type | - if this value is set, the input string is only parsed for the given type |
| GenAddress::GenAddress | ( | const Address & | addr | ) |
Construct a generic address from an Address object.
| addr | - Any address object |
| GenAddress::GenAddress | ( | const GenAddress & | addr | ) |
Construct a generic address from another generic address object.
| addr | - Generic address object to copy |
|
inline |
|
inline |
Access the protected address.
The caller must make sure that this GenAddress object ist valid() and is of the right type (get_type()).
|
inline |
Access the protected address.
The caller must make sure that this GenAddress object ist valid() and is of the right type (get_type()).
|
inlinevirtual |
|
inlinevirtual |
Clone this object.
Implements SnmpSyntax.
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Get a printable ASCII value of the address.
Implements SnmpSyntax.
|
inlinevirtual |
Return the syntax.
Implements SnmpSyntax.
Definition at line 1021 of file address.h.
References sNMP_SYNTAX_NULL.
|
inlinevirtual |
Return the type of the address.
Implements Address.
|
inlineprotectedvirtual |
|
inlinevirtual |
|
virtual |
Overloaded assignment operator for a GenAddress.
|
virtual |
Map other SnmpSyntax objects to GenAddress.
Implements SnmpSyntax.
|
inlineprotectedvirtual |
Implements Address.
Definition at line 1135 of file address.h.
References Address::type_invalid.
Referenced by Address::operator=().
|
protectedvirtual |