|
join 1.0
lightweight network framework library
|
stream serializer abstract class. More...
#include <sax.hpp>


Public Member Functions | |
| StreamWriter (std::ostream &document) | |
| create instance. | |
| StreamWriter (const StreamWriter &other)=delete | |
| Create the Writer instance by copy. | |
| StreamWriter & | operator= (const StreamWriter &other)=delete |
| Assign the Writer instance by copy. | |
| StreamWriter (StreamWriter &&other)=delete | |
| Create the Writer instance by move. | |
| StreamWriter & | operator= (StreamWriter &&other)=delete |
| Assign the Writer instance by move. | |
| virtual | ~StreamWriter ()=default |
| Destroy the Writer instance. | |
| virtual int | serialize (const Value &value) |
| Serialize data. | |
Public Member Functions inherited from join::SaxHandler | |
| SaxHandler ()=default | |
| default constructor. | |
| SaxHandler (const SaxHandler &other)=default | |
| copy constructor. | |
| SaxHandler & | operator= (const SaxHandler &other)=default |
| copy assignment. | |
| SaxHandler (SaxHandler &&other)=default | |
| move constructor. | |
| SaxHandler & | operator= (SaxHandler &&other)=default |
| move assignment. | |
| virtual | ~SaxHandler ()=default |
| destroy instance. | |
| virtual int | setNull ()=0 |
| set null value. | |
| virtual int | setBool (bool value)=0 |
| set boolean value. | |
| virtual int | setInt (int32_t value)=0 |
| set integer value. | |
| virtual int | setUint (uint32_t value)=0 |
| set unsigned integer value. | |
| virtual int | setInt64 (int64_t value)=0 |
| set 64 bits integer value. | |
| virtual int | setUint64 (uint64_t value)=0 |
| set unsigned 64 bits integer value. | |
| virtual int | setDouble (double value)=0 |
| set real value. | |
| virtual int | setString (const std::string &value)=0 |
| set string value. | |
| virtual int | startArray (uint32_t size=0)=0 |
| start array. | |
| virtual int | stopArray () |
| stop array. | |
| virtual int | startObject (uint32_t size=0)=0 |
| start object. | |
| virtual int | setKey (const std::string &key)=0 |
| set key. | |
| virtual int | stopObject () |
| stop object. | |
Protected Member Functions | |
| int | setValue (const Value &value) |
| set value. | |
| virtual int | setArray (const Array &array) |
| set array value. | |
| virtual int | setObject (const Object &object) |
| set object value. | |
| void | append (char data) noexcept |
| append character to output stream in batch. | |
| void | append2 (const char *data) noexcept |
| append 2-character literal to output stream in batch. | |
| void | append3 (const char *data) noexcept |
| append 3-character literal to output stream in batch. | |
| void | append4 (const char *data) noexcept |
| append 4-character literal to output stream in batch. | |
| void | append5 (const char *data) noexcept |
| append 5-character literal to output stream in batch. | |
| void | append (const char *data, uint32_t size) noexcept |
| append characters to output stream in batch. | |
Protected Attributes | |
| std::streambuf * | _out |
| underlying output stream. | |
stream serializer abstract class.
|
inline |
create instance.
| document | document to create. |
|
delete |
Create the Writer instance by copy.
| other | Other object to copy. |
|
delete |
Create the Writer instance by move.
| other | Other object to move. |
|
virtualdefault |
Destroy the Writer instance.
|
inlineprotectednoexcept |
append character to output stream in batch.
| data | data to append to output stream. |
|
inlineprotectednoexcept |
append characters to output stream in batch.
| data | data to append to output stream. |
| size | data size. |
|
inlineprotectednoexcept |
append 2-character literal to output stream in batch.
| data | data to append to output stream. |
|
inlineprotectednoexcept |
append 3-character literal to output stream in batch.
| data | data to append to output stream. |
|
inlineprotectednoexcept |
append 4-character literal to output stream in batch.
| data | data to append to output stream. |
|
inlineprotectednoexcept |
append 5-character literal to output stream in batch.
| data | data to append to output stream. |
|
delete |
Assign the Writer instance by copy.
| other | Other object to copy. |
|
delete |
Assign the Writer instance by move.
| other | Other object to move. |
|
inlinevirtual |
|
inlineprotectedvirtual |
set array value.
| value | array value to set. |
|
inlineprotectedvirtual |
set object value.
| value | array value to set. |
Reimplemented in join::JsonCanonicalizer.
|
inlineprotected |
|
protected |
underlying output stream.