phaser-server  0.0.2
Public Member Functions | Protected Member Functions | List of all members
JsonNotice Class Referenceabstract

Abstract base for all notifications. More...

#include <notify.h>

Inheritance diagram for JsonNotice:
Inheritance graph
[legend]

Public Member Functions

 JsonNotice (const char *value)
 Initialize the value of the 'notification' tag.
 
std::string operator() (void)
 Get the JSON encoded response string.
 

Protected Member Functions

virtual void Create (JSONObject &)=0
 

Detailed Description

Abstract base for all notifications.

Note
Notifications received by a client are not a response to a client request, but an update of server state; which is sent to all active clients.
You access the constructed JSON text string via the call operator.
A copy of the passed value is not made, it must stay in scope for the lifetime of the object.

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