phaser-server  0.0.7
Public Types | Public Member Functions | Protected Member Functions | List of all members
JsonResponse Class Referenceabstract

Abstract base for all responses. More...

#include <response.h>

Inheritance diagram for JsonResponse:
Inheritance graph
[legend]

Public Types

enum class  Response_t { R_ok , R_warning , R_error }
 Status of processed request.
 

Public Member Functions

 JsonResponse (Response_t type)
 Construct with the outcome enumeration.
 
std::string operator() (void)
 Get the JSON encoded response string.
 

Protected Member Functions

virtual void Create (JSONObject &)=0
 Create the JSON encoded response.
 

Detailed Description

Abstract base for all responses.

Note
You access the constructed JSON text string via the call operator.
All responses are prompted by some request from a client.
Responses are JSON formatted ASCII text.

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