]> git.stg.codes - ssmd.git/blob - include/snmptable.inl.h
Removed GTS string.
[ssmd.git] / include / snmptable.inl.h
1 #ifndef __SSMD_SNMPTABLE_INL_H__
2 #define __SSMD_SNMPTABLE_INL_H__
3
4 namespace SSMD {
5     
6 template <typename T>
7 inline
8 bool SNMPTable::valueExists(const T & value) const
9 {
10     SNMPList::const_iterator it;
11     for (it = _list.begin(); it != _list.end(); ++it) {
12         T v;
13         if (it->get_value(v) != SNMP_CLASS_SUCCESS) {
14             continue;
15         }
16         if (v == value)
17             return true;
18     }
19     return false;
20 }
21
22 }
23
24 #endif