Samchon Framework for CPP  1.0.0
Entity.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 #include <string>
5 #include <memory>
6 
7 #include <samchon/library/XML.hpp>
8 
9 namespace samchon
10 {
11 namespace protocol
12 {
48  class SAMCHON_FRAMEWORK_API Entity
49  {
50  public:
56  virtual auto TAG() const->std::string = 0;
57 
58  public:
62  Entity();
63  virtual ~Entity() = default;
64 
76  virtual void construct(std::shared_ptr<library::XML>) = 0;
77 
88  virtual auto key() const->std::string;
89 
129  virtual auto toXML() const->std::shared_ptr<library::XML>;
130  };
131 };
132 };
An entity, a standard data class.
Definition: Entity.hpp:48
XML is a class representing xml object.
Definition: XML.hpp:72
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7