30 #ifndef PT_JSON_FORMATTER_H
31 #define PT_JSON_FORMATTER_H
33 #include <Pt/Json/Api.h>
34 #include <Pt/String.h>
35 #include <Pt/Formatter.h>
36 #include <Pt/NonCopyable.h>
94 const Pt::Char* value,
const char*
id);
96 void onAddBool(
const char* name,
bool value,
const char*
id);
116 void onAddFloat(
const char* name,
float value,
const char*
id);
123 const char* value, std::size_t length,
const char*
id);
152 void OnBegin(
const Node& node);
155 void onArray(
const Node& node);
158 void onObject(
const Node& node);
172 std::stack<ProcessNode> _parseStack;
Core module.
Definition: Allocator.h:33
JSON document node.
Definition: Node.h:52
uint_type uint64_t
Unsigned 64-bit integer type.
Definition: Api-Types.h:62
int_type int64_t
Signed 64-bit integer type.
Definition: Api-Types.h:55
Reads JSON as a Stream of Nodes.
Definition: JsonReader.h:51
Unicode character type.
Definition: String.h:67
Composes types during serialization.
Definition: Composer.h:43
uint_type uint8_t
Unsigned 8-bit integer type.
Definition: Api-Types.h:20
uint_type uint32_t
Unsigned 32-bit integer type.
Definition: Api-Types.h:48
int_type int32_t
Signed 32-bit integer type.
Definition: Api-Types.h:41
Protects derived classes from being copied.
Definition: NonCopyable.h:54
int_type int8_t
Signed 8-bit integer type.
Definition: Api-Types.h:13
uint_type uint16_t
Unsigned 16-bit integer type.
Definition: Api-Types.h:34
int_type int16_t
Signed 16-bit integer type.
Definition: Api-Types.h:27
Writes JSON to a text stream.
Definition: JsonWriter.h:46