2 #include <samchon/API.hpp> 4 #include <samchon/protocol/Invoke.hpp> 6 #include <samchon/templates/slave/InvokeHistory.hpp> 7 #include <samchon/protocol/IProtocol.hpp> 15 class PInvoke :
public protocol::Invoke
18 typedef protocol::Invoke super;
20 std::shared_ptr<InvokeHistory> history_;
21 protocol::IProtocol *master_driver_;
36 PInvoke(
const std::shared_ptr<protocol::Invoke> &invoke, std::shared_ptr<InvokeHistory> history, protocol::IProtocol *masterDriver)
40 assign(invoke->begin(), invoke->end());
43 this->history_ = history;
44 this->master_driver_ = masterDriver;
59 master_driver_->sendData(history_->toInvoke());
65 auto getHistory() const ->
std::shared_ptr<InvokeHistory>
69 auto isHold() const ->
bool
auto getListener() const -> std::string
Get listener.