blob: c433f32e9ff09090342727bd6df5b4cd2154b312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "json.hpp"
#include "jsonable.h"
#include <memory>
namespace feature {
class Feature : public Jsonable {
public:
static std::shared_ptr<Feature> 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;
};
}
|