Torc  0.1
Public Member Functions | Protected Member Functions | List of all members
TorcJSONSerialiser Class Reference

#include <torcjsonserialiser.h>

Inheritance diagram for TorcJSONSerialiser:
[legend]

Public Member Functions

 TorcJSONSerialiser (bool Javascript=false)
 
virtual ~TorcJSONSerialiser ()=default
 
HTTPResponseType ResponseType (void) override
 
- Public Member Functions inherited from TorcSerialiser
 TorcSerialiser ()=default
 
virtual ~TorcSerialiser ()=default
 
void Serialise (QByteArray &Dest, const QVariant &Data, const QString &Type=QString())
 

Protected Member Functions

void Prepare (QByteArray &) override
 
void Begin (QByteArray &) override
 
void AddProperty (QByteArray &Dest, const QString &Name, const QVariant &Value) override
 
void End (QByteArray &) override
 

Additional Inherited Members

- Static Public Member Functions inherited from TorcSerialiser
static TorcSerialiserGetSerialiser (const QString &MimeType)
 

Detailed Description

Definition at line 10 of file torcjsonserialiser.h.

Constructor & Destructor Documentation

TorcJSONSerialiser::TorcJSONSerialiser ( bool  Javascript = false)
explicit

Definition at line 29 of file torcjsonserialiser.cpp.

virtual TorcJSONSerialiser::~TorcJSONSerialiser ( )
virtualdefault

Member Function Documentation

void TorcJSONSerialiser::AddProperty ( QByteArray &  Dest,
const QString &  Name,
const QVariant &  Value 
)
overrideprotectedvirtual

Implements TorcSerialiser.

Definition at line 48 of file torcjsonserialiser.cpp.

void TorcJSONSerialiser::Begin ( QByteArray &  )
overrideprotectedvirtual

Implements TorcSerialiser.

Definition at line 44 of file torcjsonserialiser.cpp.

void TorcJSONSerialiser::End ( QByteArray &  )
overrideprotectedvirtual

Implements TorcSerialiser.

Definition at line 62 of file torcjsonserialiser.cpp.

void TorcJSONSerialiser::Prepare ( QByteArray &  )
overrideprotectedvirtual

Implements TorcSerialiser.

Definition at line 40 of file torcjsonserialiser.cpp.

HTTPResponseType TorcJSONSerialiser::ResponseType ( void  )
overridevirtual

Implements TorcSerialiser.

Definition at line 35 of file torcjsonserialiser.cpp.


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