diff --git a/src/Parser.cc b/src/Parser.cc new file mode 100644 index 0000000..783dea6 --- /dev/null +++ b/src/Parser.cc @@ -0,0 +1,6 @@ +#include "Parser.h" +#include + +static Scene *parseScene(const nlohmann::json &j) { + string name = j["filename"].get(); +} diff --git a/src/Parser.h b/src/Parser.h index bbf1d64..1df3307 100644 --- a/src/Parser.h +++ b/src/Parser.h @@ -9,15 +9,15 @@ class Parser { public: - static Geometry *parseGeometry(const nlohmann::json &); - static Light *parseLight(const nlohmann::json &); - static Scene *parseScene(const nlohmann::json &); + static Geometry *getGeometry(const nlohmann::json &); + static Light *getLight(const nlohmann::json &); + static Scene *getScene(const nlohmann::json &); private: - static PointLight *parsePointLight(const nlohmann::json &); - static AreaLight *parseAreaLight(const nlohmann::json &); - static Rectangle *parseRectangle(const nlohmann::json &); - static Sphere *parseSphere(const nlohmann::json &); + static PointLight *getPointLight(const nlohmann::json &); + static AreaLight *getAreaLight(const nlohmann::json &); + static Rectangle *getRectangle(const nlohmann::json &); + static Sphere *getSphere(const nlohmann::json &); }; #endif // !PARSER_H_