ISSUE ID:- RICAPP-216
[ric-app/bouncer.git] / Bouncer / src / helper.h
diff --git a/Bouncer/src/helper.h b/Bouncer/src/helper.h
new file mode 100644 (file)
index 0000000..03c3286
--- /dev/null
@@ -0,0 +1,18 @@
+#include"header.h"
+struct NodebListHandler : public BaseReaderHandler<UTF8<>, NodebListHandler> {
+  vector<std::string> nodeb_list;
+  string curr_key = "";
+
+  bool Key(const Ch* str, SizeType length, bool copy) {
+    curr_key = str;
+    return true;
+  }
+
+  bool String(const Ch* str, SizeType length, bool copy) {
+    if( curr_key.compare( "inventoryName" ) == 0 ) {
+      std::cout<<str<<" "<<std::endl;
+      nodeb_list.push_back( str );
+    }
+    return true;
+  }
+};