AGENT++  4.0.3
Classes | Macros | Variables
mib_complex_entry.h File Reference
#include <agent_pp/mib_entry.h>
#include <agent_pp/mib.h>

Go to the source code of this file.

Classes

class  MibComplexEntry
 The MibComplexEntry class is an abstract class that represents complex MIB nodes. More...
 
class  MibStaticEntry
 The MibStaticEntry class represents an entry (instance) within a MibStaticTable. More...
 
class  MibStaticTable
 

Macros

#define AGENTPP_DECL_TEMPL_OIDLIST_MIBSTATICENTRY
 The MibStaticTable class is a light weight table implementation for static (read-only) tables and scalar groups.
 

Variables

AGENTPP_DECL_TEMPL template
class AGENTPP_DECL 
OidList< MibStaticEntry >
 

Macro Definition Documentation

#define AGENTPP_DECL_TEMPL_OIDLIST_MIBSTATICENTRY

The MibStaticTable class is a light weight table implementation for static (read-only) tables and scalar groups.

This class may be used as an example showing how the abstract class MibComplexEntry can be extended by subclassing to implement tables that access their management information through a proprietary protocol (other than SNMP or AgentX).

Caution: From version 3.5.2 on, MibStaticEntries added to a MibStaticTable should contain their respective OID suffix to the table. The scalar group snmpGroup would thus be defined as follows:

MibStaticTable* st = new MibStaticTable("1.3.6.1.2.1.11"); st->add(new MibStaticTable("1.0", Counter32(0))); // snmpInPkts st->add(new MibStaticTable("2.0", Counter32(0))); // snmpOutPkts st->add(new MibStaticTable("3.0", Counter32(0))); // snmpInBadVersions

The old format where the full OID had to be specified is still support for compatibility reasons but should no longer be used, because it might be removed in future versions!

Author
Frank Fock
Version
3.5.2

Variable Documentation