ISSUE ID:- RICAPP-216
[ric-app/bouncer.git] / Bouncer / src / helper.h
1 #include"header.h"
2 struct NodebListHandler : public BaseReaderHandler<UTF8<>, NodebListHandler> {
3   vector<std::string> nodeb_list;
4   string curr_key = "";
5
6   bool Key(const Ch* str, SizeType length, bool copy) {
7     curr_key = str;
8     return true;
9   }
10
11   bool String(const Ch* str, SizeType length, bool copy) {
12     if( curr_key.compare( "inventoryName" ) == 0 ) {
13       std::cout<<str<<" "<<std::endl;
14       nodeb_list.push_back( str );
15     }
16     return true;
17   }
18 };