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.

29 rivejä
450 B

  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. }