From 2ab51e507d620c4479e07ca0ec47d22c8c66bc90 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Apr 2021 15:14:34 -0400 Subject: Initial commit --- src/feature.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/feature.h (limited to 'src/feature.h') diff --git a/src/feature.h b/src/feature.h new file mode 100644 index 0000000..c433f32 --- /dev/null +++ b/src/feature.h @@ -0,0 +1,27 @@ +#pragma once +#include "json.hpp" +#include "jsonable.h" +#include + +namespace feature { + class Feature : public Jsonable { + public: + static std::shared_ptr create(const nlohmann::json& data); + + virtual ~Feature(); + + std::string getName(void) const; + std::string getType(void) const; + std::string getText(void) const; + + virtual nlohmann::json toJson(void) const; + + protected: + Feature(const nlohmann::json& data); + + private: + const std::string name; + const std::string type; + const std::string text; + }; +} -- cgit v1.2.3