#include <address.h>
Inheritance diagram for Address:
Definition at line 135 of file address.h.
Public Types | |
| 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... | |
Public Member Functions | |
| Address () | |
| Default constructor, clears the buffer and sets valid flag to false. | |
| virtual | ~Address () |
| Allow destruction of derived classes. | |
| virtual | operator const char * () const=0 |
| Overloaded operator for streaming output. | |
| virtual bool | valid () const |
| Return if the object contains a valid address. | |
| virtual int | get_asn1_length () const=0 |
| Return the space needed for serialization. | |
| unsigned char & | operator[] (const int position) |
| Access as an array (read and write). | |
| unsigned char | operator[] (const int position) const |
| Access as an array (read only). | |
| virtual int | get_length () const=0 |
| Get the length of the binary address (accessible through operator[]). | |
| virtual addr_type | get_type () const=0 |
| Get the type of the address. | |
| virtual SnmpSyntax & | operator= (const SnmpSyntax &val)=0 |
| Overloaded assignment operator. | |
| virtual unsigned int | hashFunction () const |
Protected Member Functions | |
| virtual bool | parse_address (const char *inaddr)=0 |
| virtual void | format_output () const=0 |
| void | trim_white_space (char *ptr) |
| Trim of whitespaces at the start and the end of the string. | |
| virtual bool | is_gen_address () const |
| Is this a GenAddress object. | |
| void | clear () |
| Reset the object. | |
Protected Attributes | |
| bool | addr_changed |
| bool | valid_flag |
| unsigned char | address_buffer [BUFSIZE] |
Friends | |
| class | GenAddress |
| DLLOPT friend int | operator== (const Address &lhs, const Address &rhs) |
| overloaded equivlence operator, are two addresses equal? | |
| DLLOPT friend int | operator!= (const Address &lhs, const Address &rhs) |
| overloaded not equivlence operator, are two addresses not equal? | |
| DLLOPT friend int | operator> (const Address &lhs, const Address &rhs) |
| overloaded > operator, is a1 > a2 | |
| DLLOPT friend int | operator>= (const Address &lhs, const Address &rhs) |
| overloaded >= operator, is a1 >= a2 | |
| DLLOPT friend int | operator< (const Address &lhs, const Address &rhs) |
| overloaded < operator, is a1 < a2 | |
| DLLOPT friend int | operator<= (const Address &lhs, const Address &rhs) |
| overloaded <= operator, is a1 <= a2 | |
| DLLOPT friend int | operator== (const Address &lhs, const char *rhs) |
| equivlence operator overloaded, are an address and a string equal? | |
| DLLOPT friend int | operator!= (const Address &lhs, const char *rhs) |
| overloaded not equivlence operator, are an address and string not equal? | |
| DLLOPT friend int | operator> (const Address &lhs, const char *rhs) |
| overloaded < , is an address greater than a string? | |
| DLLOPT friend int | operator>= (const Address &lhs, const char *rhs) |
| overloaded >=, is an address greater than or equal to a string? | |
| DLLOPT friend int | operator< (const Address &lhs, const char *rhs) |
| overloaded < , is an address less than a string? | |
| DLLOPT friend int | operator<= (const Address &lhs, const char *rhs) |
| overloaded <=, is an address less than or equal to a string? | |
|
|
Type returned by Address::get_type().
|
|
|
Type returned by IpAddress::get_ip_version() and UdpAddress::get_ip_version().
|
|
|
Default constructor, clears the buffer and sets valid flag to false.
|
|
|
Allow destruction of derived classes.
|
|
|
Reset the object.
Implements SnmpSyntax. Reimplemented in IpAddress, UdpAddress, and GenAddress. Referenced by UdpAddress::clear(). |
|
|
Implemented in IpAddress, UdpAddress, and GenAddress. |
|
|
Return the space needed for serialization.
Implements SnmpSyntax. Implemented in IpAddress, UdpAddress, and GenAddress. |
|
|
Get the length of the binary address (accessible through operator[]).
Implemented in IpAddress, UdpAddress, and GenAddress. |
|
|
Get the type of the address.
Implemented in IpAddress, UdpAddress, and GenAddress. |
|
|
|
|
|
Is this a GenAddress object.
Reimplemented in GenAddress. |
|
|
Overloaded operator for streaming output.
Implemented in IpAddress, UdpAddress, and GenAddress. |
|
|
Overloaded assignment operator.
Reimplemented from SnmpSyntax. Implemented in IpAddress, UdpAddress, and GenAddress. |
|
|
Access as an array (read only).
Definition at line 252 of file address.h. References BUFSIZE. |
|
|
Access as an array (read and write).
Definition at line 240 of file address.h. References BUFSIZE. |
|
|
Implemented in IpAddress, UdpAddress, and GenAddress. |
|
|
Trim of whitespaces at the start and the end of the string.
|
|
|
Return if the object contains a valid address.
Implements SnmpSyntax. |
|
|
|
|
||||||||||||
|
overloaded not equivlence operator, are an address and string not equal?
|
|
||||||||||||
|
overloaded not equivlence operator, are two addresses not equal?
|
|
||||||||||||
|
overloaded < , is an address less than a string?
|
|
||||||||||||
|
overloaded < operator, is a1 < a2
|
|
||||||||||||
|
overloaded <=, is an address less than or equal to a string?
|
|
||||||||||||
|
overloaded <= operator, is a1 <= a2
|
|
||||||||||||
|
equivlence operator overloaded, are an address and a string equal?
|
|
||||||||||||
|
overloaded equivlence operator, are two addresses equal?
|
|
||||||||||||
|
overloaded < , is an address greater than a string?
|
|
||||||||||||
|
overloaded > operator, is a1 > a2
|
|
||||||||||||
|
overloaded >=, is an address greater than or equal to a string?
|
|
||||||||||||
|
overloaded >= operator, is a1 >= a2
|
|
|
|
|
|
|
|
|
|
1.3.2