Samchon Framework for CPP  1.0.0
samchon::protocol::service::ServiceKeeper Class Reference

A keeper blocking destrunction of User and Client. More...

#include <ServiceKeeper.hpp>

Collaboration diagram for samchon::protocol::service::ServiceKeeper:

Public Member Functions

 ServiceKeeper (const User *user, const Client *client)
 Construct from User and Client. More...
 
 ServiceKeeper (const ServiceKeeper &)
 Copy Constructor. More...
 
 ServiceKeeper (ServiceKeeper &&)
 Movie Constructor. More...
 

Private Attributes

SmartPointer< Useruser
 A shared pionter of an User. More...
 
SmartPointer< Clientclient
 A shared pointer of a Client. More...
 

Detailed Description

A keeper blocking destrunction of User and Client.

Keeps User, Client and Service objects until termination of a stack.

You can prevent the object to be destructed until the method is in a process. User, Client and Service provides a macro instruction for it.

protocol_service.png
Note
Defined macros
  • KEEP_USER_ALIVE
  • KEEP_CLIENT_ALIVE
  • KEEP_SERVICE_ALIVE
See also
samchon::protocol
samchon::protocol::service
Author
Jeongho Nam http://samchon.org

Definition at line 35 of file ServiceKeeper.hpp.

Constructor & Destructor Documentation

ServiceKeeper::ServiceKeeper ( const User user,
const Client client 
)

Construct from User and Client.

user An User to keep client A Client to keep

Definition at line 8 of file ServiceKeeper.cpp.

ServiceKeeper::ServiceKeeper ( const ServiceKeeper pair)

Copy Constructor.

Definition at line 13 of file ServiceKeeper.cpp.

References client, and user.

ServiceKeeper::ServiceKeeper ( ServiceKeeper &&  pair)

Movie Constructor.

Definition at line 18 of file ServiceKeeper.cpp.

References client, and user.

Member Data Documentation

SmartPointer<User> samchon::protocol::service::ServiceKeeper::user
private

A shared pionter of an User.

Definition at line 41 of file ServiceKeeper.hpp.

Referenced by ServiceKeeper().

SmartPointer<Client> samchon::protocol::service::ServiceKeeper::client
private

A shared pointer of a Client.

Definition at line 46 of file ServiceKeeper.hpp.

Referenced by ServiceKeeper().


The documentation for this class was generated from the following files: