From fd2b57b4aee5ace247e05239105decb1066b9752 Mon Sep 17 00:00:00 2001 From: vonhyou Date: Tue, 13 Feb 2024 22:17:27 -0500 Subject: [PATCH] rename method names --- src/Parser.cc | 6 ++++++ src/Parser.h | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 src/Parser.cc 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_