2 #include <samchon/templates/external/ExternalClientArray.hpp> 3 # include <samchon/examples/interaction/Viewer.hpp> 4 #include <samchon/examples/interaction/base/ReporterBase.hpp> 6 #include <samchon/examples/interaction/base/MonitorBase.hpp> 7 #include <samchon/examples/interaction/base/SystemBase.hpp> 18 :
public templates::external::ExternalClientArray<Viewer>,
19 public base::ReporterBase
22 typedef templates::external::ExternalClientArray<Viewer> super;
30 Reporter(Monitor *monitor) : super()
32 this->monitor = monitor;
34 virtual ~Reporter() =
default;
37 virtual auto createExternalClient(std::shared_ptr<protocol::ClientDriver> driver) -> Viewer*
override 39 return new Viewer(
this, driver);
46 virtual auto getMonitor() const -> Monitor*
override 54 virtual void sendSystems() override final
56 System *root = ((base::MonitorBase*)monitor)->getRootSystem();
60 sendData(std::make_shared<protocol::Invoke>(
"setSystems", ((base::SystemBase*)root)->
toXML()));
63 virtual void replyData(std::shared_ptr<protocol::Invoke>)
virtual void replyData(std::shared_ptr< Invoke >)=0
virtual void sendData(std::shared_ptr< protocol::Invoke > invoke)
virtual auto toXML() const -> std::shared_ptr< library::XML >
Get an XML object represents the EntityGroup.