+
+
+ if(!myfile.is_open())
+ myfile.open(FILENAME);
+ std::string line;
+ while ( std::getline(myfile,line) )
+ {
+ json.Parse(line.c_str());
+ const char *const type = json["type"].GetString();
+ if ( strcmp(type, "l2update") == 0 )
+ {
+ processUpdates(json, bids, offers);
+ }
+ else if ( strcmp(type, "snapshot") == 0 )
+ {
+ processSnapshot(json, bids, offers, m_bookInitialized);
+ }
+ }
+
+ /* auto connection =