AgentXcpp  Revision:0.1.1
Internals Documentation
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Pages
agentxcpp Namespace Reference

Classes

class  AddAgentCapsPDU
 Represents an AddAgentCaps-PDU. More...
class  binary
 A type representing a contigous byte stream. More...
class  CleanupSetPDU
 Represents an CleanupSet-PDU. More...
class  ClosePDU
 This class represents a Close-PDU. More...
class  CommitSetPDU
 Represents an CommitSet-PDU. More...
class  connector
 This class provides connection to another agentXcpp entity via a unix domain socket. More...
class  Counter32
 Represents an Counter32 as descibed in RFC 2741. More...
class  Counter64
 Represents an Integer as descibed in RFC 2741. More...
class  parse_error
 Exception for parse errors. More...
class  inval_param
 Exception for invalid parameter. More...
class  version_error
 Exception for reception of PDU with invalid version number. More...
class  disconnected
 Exception to indicate a disconnected state. More...
class  timeout_error
 Exception to indicate a timeout. More...
class  network_error
 Exception to indicate a network error. More...
class  internal_error
 Exception to indicate an internal error. More...
class  master_is_unable
 Exception to indicate that the master agent was unable to process a request. More...
class  master_is_unwilling
 Exception to indicate that the master agent was not willing to process a request. More...
class  duplicate_registration
 Exception to indicate that a MIB region was registered twice with the same priority. More...
class  unknown_registration
 Exception to indicate that a MIB region registration was not found. More...
class  generic_error
 Exception to indicate that obtaining the value of an SNMP variable failed. More...
class  Gauge32
 Represents a Gauge32 as descibed in RFC 2741. More...
class  GetBulkPDU
 Represents an GetBulk-PDU. More...
class  GetNextPDU
 Represents an GetNext-PDU. More...
class  GetPDU
 Represents an Get-PDU. More...
class  IndexAllocatePDU
 Represents a IndexAllocate-PDU. More...
class  IndexDeallocatePDU
 Represents a IndexDeallocate-PDU. More...
class  Integer
 Represents an Integer as descibed in RFC 2741. More...
class  IpAddress
 Represents an IP address as descibed in RFC 2741, section 5.4. More...
class  master_proxy
 This class represents the master agent in a subagent program. More...
class  NotifyPDU
 Represents an Notify-PDU. More...
class  Octet_String
 Represents an Octet String as descibed in RFC 2741, section 5.3. More...
class  oid
 Represents an SNMP object identifier (OID). More...
class  Opaque
 Represents an Opaque obejct as descibed in RFC 2741, section 5.4. More...
class  OpenPDU
 Represents an Open-PDU. More...
class  PDU
 The base class of all PDU's. More...
class  PDUwithContext
class  PingPDU
 Represents a Ping-PDU. More...
class  RegisterPDU
 This class represents a Register-PDU. More...
class  RemoveAgentCapsPDU
 Represents an RemoveAgentCaps-PDU. More...
class  ResponsePDU
 Represents an Response-PDU. More...
class  TestSetPDU
 Represents an TestSet-PDU. More...
class  timeout_timer
 A timer which can detect timeouts. More...
class  TimeTicks
 Represents an TimeTicks as descibed in RFC 2741. More...
class  UndoSetPDU
 Represents an UndoSet-PDU. More...
class  UnregisterPDU
 This class represents an Unregister-PDU. More...
class  varbind
 Represents a VarBind according to RFC 2741, section 5.4. More...
class  variable
 This class represents a SNMP variable. More...

Functions

std::ostream & operator<< (std::ostream &out, const binary &data)
 Output operator for binary.
std::ostream & operator<< (std::ostream &out, const agentxcpp::oid &o)
 The output operator for the oid class.
uint64_t read64 (binary::const_iterator &pos, bool big_endian)
void write64 (binary &serialized, uint64_t value)
 Write a 64-bit value into a string.
uint32_t read32 (binary::const_iterator &pos, bool big_endian)
void write32 (binary &serialized, uint32_t value)
 Write a 32-bit value into a string.
uint16_t read16 (binary::const_iterator &pos, bool big_endian)
void write16 (binary &serialized, uint16_t value)
 Write a 16-bit value into a string.

Function Documentation

std::ostream& agentxcpp::operator<< ( std::ostream &  out,
const binary &  data 
)
inline

Output operator for binary.

Definition at line 42 of file binary.hpp.

std::ostream & agentxcpp::operator<< ( std::ostream &  out,
const agentxcpp::oid o 
)

The output operator for the oid class.

Object identifiers (oid objects) can be output as follows:

oid led_state(enterprises_oid, "1.3.3.1");
cout << "LED state OID: " << led_state << endl;

The last line will output "LED state OID: .1.3.6.1.4.1.3.3.1".

Parameters:
outThe stream to which to write the output.
oThe OID to output.
Returns:
The 'out' parameter.

Definition at line 87 of file oid.cpp.

uint16_t agentxcpp::read16 ( binary::const_iterator &  pos,
bool  big_endian 
)
inline
uint64_t agentxcpp::read64 ( binary::const_iterator &  pos,
bool  big_endian 
)
inline

Definition at line 33 of file util.hpp.

Referenced by agentxcpp::Counter64::Counter64().

void agentxcpp::write16 ( binary &  serialized,
uint16_t  value 
)
inline

Write a 16-bit value into a string.

Parameters:
serializedThe string to which the value is appended.
valueThe value which is appended to the string.

Definition at line 145 of file util.hpp.

Referenced by agentxcpp::GetBulkPDU::serialize(), and agentxcpp::ResponsePDU::serialize().

void agentxcpp::write32 ( binary &  serialized,
uint32_t  value 
)
inline

Write a 32-bit value into a string.

Parameters:
serializedThe string to which the value is appended.
valueThe value which is appended to the string.

Definition at line 111 of file util.hpp.

Referenced by agentxcpp::PDU::add_header(), agentxcpp::Octet_String::serialize(), agentxcpp::Integer::serialize(), agentxcpp::TimeTicks::serialize(), agentxcpp::Gauge32::serialize(), agentxcpp::Counter32::serialize(), agentxcpp::UnregisterPDU::serialize(), agentxcpp::RegisterPDU::serialize(), and agentxcpp::ResponsePDU::serialize().

void agentxcpp::write64 ( binary &  serialized,
uint64_t  value 
)
inline

Write a 64-bit value into a string.

Parameters:
serializedThe string to which the value is appended.
valueThe value which is appended to the string.

Definition at line 69 of file util.hpp.

Referenced by agentxcpp::Counter64::serialize().