26 using namespace agentxcpp;
36 std::istringstream ss(s);
99 oid::const_iterator it = o.begin();
134 const int n_subid_idx = 0;
135 const int prefix_idx = 1;
136 const int include_idx = 2;
137 const int reserved_idx = 3;
141 serialized.resize(4);
144 serialized[reserved_idx] = 0;
147 serialized[include_idx] = include ? 1 : 0;
150 oid::const_iterator subid = this->begin();
153 if( this->size() >= 5 &&
161 serialized[prefix_idx] = (*this)[4];
165 serialized[n_subid_idx] = this->size() - 5;
170 serialized[prefix_idx] = 0;
173 serialized[n_subid_idx] = this->size();
177 while( subid != this->end() )
179 serialized.push_back( (*subid) << 24 & 0xff );
180 serialized.push_back( (*subid) << 16 & 0xff );
181 serialized.push_back( (*subid) << 8 & 0xff );
182 serialized.push_back( (*subid) << 0 & 0xff );
190 const binary::const_iterator& end,
199 int n_subid = *pos++;
209 this->push_back(prefix);
230 if(end - pos < n_subid * 4)
235 for(
int i = 0; i < n_subid; i++)
240 subid = *pos++ << 24;
241 subid |= *pos++ << 16;
242 subid |= *pos++ << 8;
243 subid |= *pos++ << 0;
249 subid |= *pos++ << 8;
250 subid |= *pos++ << 16;
251 subid |= *pos++ << 24;
253 this->push_back(subid);
260 oid::const_iterator mine, yours;
261 mine = this->begin();
265 while( mine != this->end()
266 && yours != o.end() )
287 if( this->size() < o.size() )
305 if( this->size() != o.size() )
311 oid::const_iterator mine, yours;
312 mine = this->begin();
315 while( mine != this->end()
316 && yours != o.end() )
318 if( *mine != *yours )
341 vector<uint32_t>::operator=(other);
342 variable::operator=(other);
352 if(this->size() >
id.size())
359 for(size_type i = 0; i < this->size(); i++)
361 if( (*
this)[i] !=
id[i] )
377 if( this->size() == 0 &&