Samchon Framework for CPP
1.0.0
|
#include <Service.hpp>
Public Member Functions | |
Service (Client *client, const std::string &path) | |
virtual | ~Service ()=default |
auto | getClient () const -> Client * |
auto | getPath () const -> std::string |
virtual void | sendData (std::shared_ptr< protocol::Invoke > invoke) override |
Public Member Functions inherited from samchon::protocol::IProtocol | |
virtual void | replyData (std::shared_ptr< Invoke >)=0 |
virtual void | sendData (std::shared_ptr< Invoke >)=0 |
A service.
The Service is an abstract class who represents a service, that is providing functions a specific page.
Extends the Service class and defines its own service, which to be provided for the specific weg page, by overriding the replyData() method. Note that, the service, functions for the specific page should be defined in this Service class, not its parent Client class who represents a remote client and takes communication responsibility.
Definition at line 33 of file Service.hpp.
|
inline |
Construct from parent Client and requested path.
client | Driver of remote client. |
path | Requested path that identifies this Service. |
Definition at line 54 of file Service.hpp.
References ~Service().
|
virtualdefault |
|
inline |
Get client.
Definition at line 78 of file Service.hpp.
|
inline |
Get requested path.
Definition at line 86 of file Service.hpp.
|
inlineoverridevirtual |
Send an Invoke message.
Sends an Invoke message to remote system through parent Client object (Client.sendData).
invoke | An Invoke message to send to the remte system. |
Definition at line 101 of file Service.hpp.