6 SNMPTable::SNMPTable(Snmp & snmp,
7 const CTarget & target,
14 if (int c = snmp.get_next(pdu, target) != SNMP_CLASS_SUCCESS) {
15 logger << "SNMPTable::SNMPTable() - failed to invoke Snmp::get_next (oid: '" << oid.get_printable() << "'). Error message: '" << Snmp::error_msg(c) << "'" << std::endl;
18 if (pdu.get_vb(0).get_oid().nCompare(oid.len(), oid) != 0) {
21 _list.push_back(pdu.get_vb(0));
27 SNMPTable::~SNMPTable()
31 bool SNMPTable::getByOid(const Oid & oid, Vb & vb) const
33 SNMPList::const_iterator it;
34 for (it = _list.begin(); it != _list.end(); ++it) {
35 if (it->valid() && it->get_oid() == oid) {