diff --git a/parser/ConfigParser.cpp b/parser/ConfigParser.cpp index fde76f8..37407c3 100644 --- a/parser/ConfigParser.cpp +++ b/parser/ConfigParser.cpp @@ -4,6 +4,12 @@ ConfigParser::ConfigParser() {} ConfigParser::~ConfigParser() {} +void ConfigParser::parseJSON(const std::string file) { + std::string json; + readFile(file, json); + std::cout << json; +} + void ConfigParser::readFile(const std::string& filepath, std::string& output) { std::cout << "Reading config file: " << filepath << std::endl; @@ -21,9 +27,3 @@ void ConfigParser::readFile(const std::string& filepath, std::string& output) { } inputFileStream.close(); } - -void ConfigParser::parseJSON(const std::string file) { - std::string json; - readFile(file, json); - std::cout << json; -} \ No newline at end of file