2 #include <samchon/API.hpp> 4 #include <samchon/protocol/Entity.hpp> 5 #include <samchon/protocol/IProtocol.hpp> 54 typedef Entity<std::string> super;
79 this->system = system;
87 virtual void construct(std::shared_ptr<library::XML> xml)
89 name = xml->getProperty(
"name");
98 virtual auto key() const ->
std::
string 129 virtual void sendData(std::shared_ptr<protocol::Invoke> invoke)
override 131 ((IProtocol*)system)->sendData(invoke);
143 virtual void replyData(std::shared_ptr<protocol::Invoke> invoke) = 0;
148 virtual auto TAG()
const -> std::string
153 virtual auto toXML()
const -> std::shared_ptr<library::XML>
override 155 std::shared_ptr<library::XML> xml = super::toXML();
156 xml->setProperty(
"name", name);
ExternalSystemRole(ExternalSystem *system)
An entity, a standard data class.
virtual ~ExternalSystemRole()=default
virtual auto key() const -> std::string
virtual void replyData(std::shared_ptr< protocol::Invoke > invoke)=0
virtual void sendData(std::shared_ptr< protocol::Invoke > invoke) override
auto getName() const -> std::string
auto getSystem() const -> ExternalSystem *