Samchon Framework for CPP  1.0.0
samchon::example::chat_service::ChatRoomArray Class Reference

A manager of chat rooms. More...

#include <ChatRoomArray.hpp>

Collaboration diagram for samchon::example::chat_service::ChatRoomArray:

Public Member Functions

 ChatRoomArray (ChatServer *)
 Construct from a chat server. More...
 
void notify ()
 Notify changes of chat rooms. More...
 

Private Member Functions

auto toXML () const -> std::shared_ptr< library::XML >
 Get an XML object representing the ChatRoomArray. More...
 
auto toInvoke () const -> std::shared_ptr< protocol::Invoke >
 Get an Invoke message used to notifying change. More...
 

Private Attributes

ChatServerserver
 A chat server that rooms are belonged to. More...
 

Detailed Description

A manager of chat rooms.

An entity list of chat rooms and a manager of chat rooms taking a responsibility of notifying changes of children chat rooms to a related chat server.

example_chat_service.png
Author
Jeongho Nam

Definition at line 31 of file ChatRoomArray.hpp.

Constructor & Destructor Documentation

samchon::example::chat_service::ChatRoomArray::ChatRoomArray ( ChatServer )

Construct from a chat server.

Member Function Documentation

void samchon::example::chat_service::ChatRoomArray::notify ( )

Notify changes of chat rooms.

Notify changes of chat rooms to all clients in the chat server.

auto samchon::example::chat_service::ChatRoomArray::toXML ( ) const -> std::shared_ptr< library::XML >
private

Get an XML object representing the ChatRoomArray.

auto samchon::example::chat_service::ChatRoomArray::toInvoke ( ) const -> std::shared_ptr< protocol::Invoke >
private

Get an Invoke message used to notifying change.

Member Data Documentation

ChatServer* samchon::example::chat_service::ChatRoomArray::server
private

A chat server that rooms are belonged to.

Definition at line 39 of file ChatRoomArray.hpp.


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