SPT JSON API  1.0.0
Developed by Sans Pareil Technologies, Inc. (SPT)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
spt::json::io::Writer Struct Reference

Base writer for serialising spt::json::Json instances. More...

#include <Writer.h>

+ Inheritance diagram for spt::json::io::Writer:
+ Collaboration diagram for spt::json::io::Writer:

Public Member Functions

virtual ~Writer ()
 Virtual DTOR for subclasses. More...
 

Protected Member Functions

 Writer (bool pp, std::string dec)
 

Protected Attributes

bool prettyPrint = false
 
std::string decorator
 

Detailed Description

Base writer for serialising spt::json::Json instances.

Date
Created 2013/05/07 19:45
Author
Rakesh Vidyadharan
Version
Id
Writer.h 5674 2014-10-25 23:07:17Z rakesh

Constructor & Destructor Documentation

virtual spt::json::io::Writer::~Writer ( )
inlinevirtual

Virtual DTOR for subclasses.

spt::json::io::Writer::Writer ( bool  pp,
std::string  dec 
)
inlineexplicitprotected

Create a new writer instance for serialising JSON data.

Parameters
ppFlag indicating whether output should be formatted for human readability or not.
decThe decorator string to use for formating output.

Member Data Documentation

std::string spt::json::io::Writer::decorator
protected
bool spt::json::io::Writer::prettyPrint = false
protected

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