reworked JLoader as JSON_Loader, will require rework of rest of obj model

This commit is contained in:
Chris Punches
2017-06-08 23:49:13 -04:00
parent 245ee4323a
commit 9fe2d4923a
37 changed files with 854 additions and 1034 deletions

31
src/loaders/JSON_Loader.h Normal file
View File

@@ -0,0 +1,31 @@
//
// Created by phanes on 4/22/17.
//
#ifndef FTESTS_JLOADER_H
#define FTESTS_JLOADER_H
#include "../json/json.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
class JSON_Loader
{
private:
Json::Value json_root;
public:
// constructor
JSON_Loader();
// load from json file
int load_json_file( std::string filename, bool verbose );
// load from std::string json
int load_json_string( std::string input, bool verbose );
// return as a JSONCPP serialized object
Json::Value as_serialized();
std::string as_string();
};
#endif //FTESTS_JLOADER_H