6 #include <samchon/library/XML.hpp> 15 virtual ~EntityBase() =
default;
28 virtual void construct(std::shared_ptr<library::XML>) = 0;
35 virtual auto TAG() const ->
std::
string = 0;
76 virtual auto toXML() const ->
std::shared_ptr<library::XML>
78 auto xml = std::make_shared<library::XML>();
79 xml->setTag(this->TAG());
114 template <
typename Key = std::
string>
118 typedef Key key_type;
121 virtual ~
Entity() =
default;
133 virtual auto key() const -> Key
An entity, a standard data class.
virtual auto key() const -> Key
Get a key that can identify the Entity uniquely.