You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VehicleManager.cpp 450 B

12345678910111213141516171819202122232425262728
  1. #include <string>
  2. #include <vector>
  3. #include <iostream>
  4. #include <json/json.h>
  5. #include "VehicleManager.hpp"
  6. using namespace std;
  7. VehicleManager::VehicleManager()
  8. {
  9. }
  10. VehicleManager::VehicleManager(string jsonFile)
  11. {
  12. ifstream jsonFile(jsonFile.c_str());
  13. Json::Reader reader;
  14. Json::Value vehicle;
  15. ifstream json(jsonFile.c_str(), ifstream::binary);
  16. bool parseSuccess = reader.parse(json, vehicle, false);
  17. if(parseSuccess)
  18. {
  19. }
  20. }