2 #include <samchon/templates/distributed/DistributedSystem.hpp> 3 #include <samchon/examples/interaction/base/SystemBase.hpp> 5 #include <samchon/examples/interaction/base/ChiefBase.hpp> 16 :
public templates::distributed::DistributedSystem,
17 public base::SystemBase
20 typedef templates::distributed::DistributedSystem super;
26 MasterSystem(Chief *chief, std::shared_ptr<protocol::ClientDriver> driver)
27 : super((templates::external::base::ExternalSystemArrayBase*)chief, driver)
31 virtual ~MasterSystem()
34 getSystemArray<base::ChiefBase>()->getMonitor()->sendSystemStructure();
37 virtual void construct(std::shared_ptr<library::XML> xml)
override 39 setUID(xml->getProperty<
int>(
"uid"));
47 virtual void sendData(std::shared_ptr<protocol::Invoke> invoke)
override 52 getSystemArray<base::ChiefBase>()->getMonitor()->reportSendData(getUID(), invoke);
virtual void construct(std::shared_ptr< library::XML > xml) override
Construct data of the Entity from an XML object.
virtual void sendData(std::shared_ptr< Invoke >)=0
virtual void sendData(std::shared_ptr< protocol::Invoke > invoke) override