|
Samchon Framework for CPP
1.0.0
|
A service. More...
#include <Service.hpp>

Public Member Functions | |
| Service (Client *) | |
| Construct from Client. More... | |
| auto | getClient () const -> Client * |
| Get Client. More... | |
| virtual void | sendData (std::shared_ptr< Invoke >) |
| Shift the responsibility of sending an Invoke message to Client. More... | |
Public Member Functions inherited from samchon::protocol::IProtocol | |
| IProtocol () | |
| Default Constructor. More... | |
| virtual void | replyData (std::shared_ptr< Invoke >) |
| Reply a message. More... | |
Protected Member Functions | |
| virtual auto | REQUIRE_AUTHORITY () const -> int=NULL |
| Required authority to access the service. More... | |
Private Attributes | |
| Client * | client |
| Client object Service is belonged to. More... | |
| std::string | name |
| A name represents a Service. More... | |
A service.
A service represents an unique functions of a web page
Most of functinos are realized in here. The Service is correspondent with a 'a service of a web page'. For a cloud Server, there can be enormous Service classes. Create Services for each functions and Define the functions detail in here.
Definition at line 44 of file Service.hpp.
| Service::Service | ( | Client * | client | ) |
Construct from Client.
Definition at line 18 of file Service.cpp.
References client, and getClient().

|
protectedvirtual |
Required authority to access the service.
Referenced by samchon::protocol::service::Client::constructService().

| auto Service::getClient | ( | ) | const -> Client* |
Get Client.
Definition at line 32 of file Service.cpp.
References client.
Referenced by Service().

|
virtual |
Shift the responsibility of sending an Invoke message to Client.
| in | An Invoke message to be sent to the (physical) client |
Reimplemented from samchon::protocol::IProtocol.
Definition at line 40 of file Service.cpp.
References client, and samchon::protocol::service::Client::sendData().

|
private |
Client object Service is belonged to.
Definition at line 62 of file Service.hpp.
Referenced by getClient(), sendData(), and Service().
|
private |
A name represents a Service.
Definition at line 67 of file Service.hpp.
Referenced by samchon::protocol::service::Client::constructService().