Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
IterativeParsingReaderHandler< Encoding > Struct Template Reference
Inheritance diagram for IterativeParsingReaderHandler< Encoding >:
Collaboration diagram for IterativeParsingReaderHandler< Encoding >:

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 IterativeParsingReaderHandler ()
 
bool Null ()
 
bool Bool (bool)
 
bool Int (int)
 
bool Uint (unsigned)
 
bool Int64 (int64_t)
 
bool Uint64 (uint64_t)
 
bool Double (double)
 
bool RawNumber (const Ch *, SizeType, bool)
 
bool String (const Ch *, SizeType, bool)
 
bool StartObject ()
 
bool Key (const Ch *, SizeType, bool)
 
bool EndObject (SizeType c)
 
bool StartArray ()
 
bool EndArray (SizeType c)
 

Public Attributes

uint32_t Logs [LogCapacity]
 
size_t LogCount
 

Static Public Attributes

static const uint32_t LOG_NULL = 0x10000000
 
static const uint32_t LOG_BOOL = 0x20000000
 
static const uint32_t LOG_INT = 0x30000000
 
static const uint32_t LOG_UINT = 0x40000000
 
static const uint32_t LOG_INT64 = 0x50000000
 
static const uint32_t LOG_UINT64 = 0x60000000
 
static const uint32_t LOG_DOUBLE = 0x70000000
 
static const uint32_t LOG_STRING = 0x80000000
 
static const uint32_t LOG_STARTOBJECT = 0x90000000
 
static const uint32_t LOG_KEY = 0xA0000000
 
static const uint32_t LOG_ENDOBJECT = 0xB0000000
 
static const uint32_t LOG_STARTARRAY = 0xC0000000
 
static const uint32_t LOG_ENDARRAY = 0xD0000000
 
static const size_t LogCapacity = 256
 

Detailed Description

template<typename Encoding = UTF8<>>
struct IterativeParsingReaderHandler< Encoding >

Definition at line 1454 of file readertest.cpp.

Member Typedef Documentation

◆ Ch

template<typename Encoding = UTF8<>>
Encoding::Ch IterativeParsingReaderHandler< Encoding >::Ch

Definition at line 1455 of file readertest.cpp.

Constructor & Destructor Documentation

◆ IterativeParsingReaderHandler()

Definition at line 1475 of file readertest.cpp.

1475 : LogCount(0) {
1476 }

Member Function Documentation

◆ Bool()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Bool ( bool )
inline

Definition at line 1480 of file readertest.cpp.

1480{ RAPIDJSON_ASSERT(LogCount < LogCapacity); Logs[LogCount++] = LOG_BOOL; return true; }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition rapidjson.h:406
static const uint32_t LOG_BOOL
uint32_t Logs[LogCapacity]
static const size_t LogCapacity

◆ Double()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Double ( double )
inline

Definition at line 1490 of file readertest.cpp.

static const uint32_t LOG_DOUBLE

◆ EndArray()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::EndArray ( SizeType c)
inline

Definition at line 1509 of file readertest.cpp.

1509 {
1511 RAPIDJSON_ASSERT((static_cast<uint32_t>(c) & 0xF0000000) == 0);
1512 Logs[LogCount++] = LOG_ENDARRAY | static_cast<uint32_t>(c);
1513 return true;
1514 }
unsigned int uint32_t
Definition stdint.h:126
static const uint32_t LOG_ENDARRAY

◆ EndObject()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::EndObject ( SizeType c)
inline

Definition at line 1500 of file readertest.cpp.

1500 {
1502 RAPIDJSON_ASSERT((static_cast<uint32_t>(c) & 0xF0000000) == 0);
1503 Logs[LogCount++] = LOG_ENDOBJECT | static_cast<uint32_t>(c);
1504 return true;
1505 }
static const uint32_t LOG_ENDOBJECT

◆ Int()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Int ( int )
inline

Definition at line 1482 of file readertest.cpp.

1482{ RAPIDJSON_ASSERT(LogCount < LogCapacity); Logs[LogCount++] = LOG_INT; return true; }
static const uint32_t LOG_INT

◆ Int64()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Int64 ( int64_t )
inline

Definition at line 1486 of file readertest.cpp.

static const uint32_t LOG_INT64

◆ Key()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Key ( const Ch * ,
SizeType ,
bool  )
inline

Definition at line 1498 of file readertest.cpp.

1498{ RAPIDJSON_ASSERT(LogCount < LogCapacity); Logs[LogCount++] = LOG_KEY; return true; }
static const uint32_t LOG_KEY

◆ Null()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Null ( )
inline

Definition at line 1478 of file readertest.cpp.

1478{ RAPIDJSON_ASSERT(LogCount < LogCapacity); Logs[LogCount++] = LOG_NULL; return true; }
static const uint32_t LOG_NULL

◆ RawNumber()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::RawNumber ( const Ch * ,
SizeType ,
bool  )
inline

Definition at line 1492 of file readertest.cpp.

static const uint32_t LOG_STRING

◆ StartArray()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::StartArray ( )
inline

Definition at line 1507 of file readertest.cpp.

static const uint32_t LOG_STARTARRAY

◆ StartObject()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::StartObject ( )
inline

Definition at line 1496 of file readertest.cpp.

static const uint32_t LOG_STARTOBJECT

◆ String()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::String ( const Ch * ,
SizeType ,
bool  )
inline

Definition at line 1494 of file readertest.cpp.

◆ Uint()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Uint ( unsigned )
inline

Definition at line 1484 of file readertest.cpp.

1484{ RAPIDJSON_ASSERT(LogCount < LogCapacity); Logs[LogCount++] = LOG_INT; return true; }

◆ Uint64()

template<typename Encoding = UTF8<>>
bool IterativeParsingReaderHandler< Encoding >::Uint64 ( uint64_t )
inline

Definition at line 1488 of file readertest.cpp.

static const uint32_t LOG_UINT64

Member Data Documentation

◆ LOG_BOOL

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_BOOL = 0x20000000
static

Definition at line 1458 of file readertest.cpp.

◆ LOG_DOUBLE

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_DOUBLE = 0x70000000
static

Definition at line 1463 of file readertest.cpp.

◆ LOG_ENDARRAY

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_ENDARRAY = 0xD0000000
static

Definition at line 1469 of file readertest.cpp.

◆ LOG_ENDOBJECT

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_ENDOBJECT = 0xB0000000
static

Definition at line 1467 of file readertest.cpp.

◆ LOG_INT

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_INT = 0x30000000
static

Definition at line 1459 of file readertest.cpp.

◆ LOG_INT64

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_INT64 = 0x50000000
static

Definition at line 1461 of file readertest.cpp.

◆ LOG_KEY

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_KEY = 0xA0000000
static

Definition at line 1466 of file readertest.cpp.

◆ LOG_NULL

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_NULL = 0x10000000
static

Definition at line 1457 of file readertest.cpp.

◆ LOG_STARTARRAY

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_STARTARRAY = 0xC0000000
static

Definition at line 1468 of file readertest.cpp.

◆ LOG_STARTOBJECT

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_STARTOBJECT = 0x90000000
static

Definition at line 1465 of file readertest.cpp.

◆ LOG_STRING

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_STRING = 0x80000000
static

Definition at line 1464 of file readertest.cpp.

◆ LOG_UINT

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_UINT = 0x40000000
static

Definition at line 1460 of file readertest.cpp.

◆ LOG_UINT64

template<typename Encoding = UTF8<>>
const uint32_t IterativeParsingReaderHandler< Encoding >::LOG_UINT64 = 0x60000000
static

Definition at line 1462 of file readertest.cpp.

◆ LogCapacity

template<typename Encoding = UTF8<>>
const size_t IterativeParsingReaderHandler< Encoding >::LogCapacity = 256
static

Definition at line 1471 of file readertest.cpp.

◆ LogCount

template<typename Encoding = UTF8<>>
size_t IterativeParsingReaderHandler< Encoding >::LogCount

Definition at line 1473 of file readertest.cpp.

◆ Logs

template<typename Encoding = UTF8<>>
uint32_t IterativeParsingReaderHandler< Encoding >::Logs[LogCapacity]

Definition at line 1472 of file readertest.cpp.


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