1 #include <samchon/protocol/ExternalSystemArray.hpp> 3 #include <samchon/protocol/ExternalSystem.hpp> 4 #include <samchon/protocol/ExternalSystemRole.hpp> 5 #include <samchon/protocol/SystemRole.hpp> 8 #include <samchon/library/XML.hpp> 9 #include <samchon/protocol/Invoke.hpp> 18 ExternalSystemArray::ExternalSystemArray()
28 for(
size_t i = 0; i < size(); i++)
29 if (at(i)->has(name) ==
true)
36 for(
size_t i = 0; i < size(); i++)
37 if (at(i)->has(name) ==
true)
38 return at(i)->get(name);
40 throw exception(
"out of range");
50 for(
size_t i = 0; i < size(); i++)
51 for(
size_t j = 0; j < at(i)->size(); j++)
52 if (at(i)->at(j)->hasSendListener(invoke->getListener()) ==
true)
61 for(
size_t i = 0; i < size(); i++)
62 for(
size_t j = 0; j < at(i)->size(); j++)
auto has(const std::string &key) const -> bool
Indicates whether a container has an object having the specified identifier.
auto getRole(const std::string &) const -> std::shared_ptr< ExternalSystemRole >
Get a role.
virtual void replyData(std::shared_ptr< Invoke >) override
Handle replied Invoke message.
virtual auto TAG() const -> std::string override
A tag name when represented by XML.
virtual void sendData(std::shared_ptr< Invoke >) override
Send a message.
An Entity and a container of children Entity objects.
Package of network protocol and libraries.
virtual auto CHILD_TAG() const -> std::string override
A tag name of children.
auto hasRole(const std::string &) const -> bool
Test whether has a role.
virtual void sendData(std::shared_ptr< Invoke >) override
Sends an Invoke message to related ExternalSystem(s).