#include <target.h>
Inheritance diagram for CTarget:
This target can be used for SNMPv1 and SNMPv2c messages.
Definition at line 289 of file target.h.
Public Member Functions | |
| CTarget () | |
| Constructor with no args. | |
| CTarget (const Address &address, const char *read_community_name, const char *write_community_name) | |
| Constructor with all args. | |
| CTarget (const Address &address, const OctetStr &read_community_name, const OctetStr &write_community_name) | |
| Constructor with all args. | |
| CTarget (const Address &address) | |
| Constructor with only address. | |
| CTarget (const CTarget &target) | |
| Constructor from existing CTarget. | |
| ~CTarget () | |
| Destructor, that has nothing to do. | |
| SnmpTarget * | clone () const |
| Clone operator. | |
| const char * | get_readcommunity () const |
| Get the read community name. | |
| void | get_readcommunity (OctetStr &oct) const |
| Get the read community name. | |
| void | set_readcommunity (const char *str) |
| Set the read community name. | |
| void | set_readcommunity (const OctetStr &oct) |
| Set the read community name. | |
| const char * | get_writecommunity () const |
| Get the write community name. | |
| void | get_writecommunity (OctetStr &oct) const |
| Get the write community name. | |
| void | set_writecommunity (const char *str) |
| Set the write community name. | |
| void | set_writecommunity (const OctetStr &oct) |
| Set the write community name. | |
| CTarget & | operator= (const CTarget &target) |
| Overloaded assignment operator. | |
| int | operator== (const CTarget &rhs) const |
| Overloeaded compare operator. | |
| int | resolve_to_C (OctetStr &read_comm, OctetStr &write_comm, GenAddress &address, unsigned long &t, int &r, unsigned char &v) const |
| Get all values of a CTarget object. | |
| void | clear () |
| Reset the object. | |
Protected Attributes | |
| OctetStr | read_community |
| OctetStr | write_community |
|
|
Constructor with no args. The validity of the target will be false. |
|
||||||||||||||||
|
Constructor with all args.
|
|
||||||||||||||||
|
Constructor with all args.
|
|
|
Constructor with only address. The read and write community names will be set to "public".
|
|
|
Constructor from existing CTarget.
|
|
|
Destructor, that has nothing to do.
|
|
|
Reset the object.
Reimplemented from SnmpTarget. |
|
|
Clone operator. Clone operation for creating a new CTarget from an existing CTarget.
Reimplemented from SnmpTarget. |
|
|
Get the read community name.
|
|
|
Get the read community name.
|
|
|
Get the write community name.
|
|
|
Get the write community name.
Definition at line 386 of file target.h. References OctetStr::get_printable(). |
|
|
Overloaded assignment operator.
|
|
|
Overloeaded compare operator. Two CTarget objects are considered equal, if all member variables and the base classes are equal.
|
|
||||||||||||||||||||||||||||
|
Get all values of a CTarget object.
|
|
|
Set the read community name.
|
|
|
Set the read community name.
|
|
|
Set the write community name.
|
|
|
Set the write community name.
|
|
|
|
|
|
|
1.3.2