#ifndef __SSMD_SNMPTABLE_H__ #define __SSMD_SNMPTABLE_H__ #include #include "snmp_pp/snmp_pp.h" namespace SSMD { typedef std::list SNMPList; class SNMPTable { public: SNMPTable(Snmp & snmp, const CTarget & target, const Oid & oid); ~SNMPTable(); bool valid() const { return _valid; } bool empty() const { return _list.empty(); } template bool valueExists(const T & value) const; bool getByOid(const Oid & oid, Vb & vb) const; const SNMPList & getList() const { return _list; } private: SNMPList _list; bool _valid; }; } #include "snmptable.inl.h" #endif