Electroneum
Loading...
Searching...
No Matches
ParseMultipleRootHandler Struct Reference
Inheritance diagram for ParseMultipleRootHandler:
Collaboration diagram for ParseMultipleRootHandler:

Public Member Functions

 ParseMultipleRootHandler ()
bool Default ()
bool StartObject ()
bool EndObject (SizeType)
bool StartArray ()
bool EndArray (SizeType)
Public Member Functions inherited from BaseReaderHandler< UTF8<>, ParseMultipleRootHandler >
bool Default ()
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 *str, SizeType len, bool copy)
 enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)
bool String (const Ch *, SizeType, bool)
bool StartObject ()
bool Key (const Ch *str, SizeType len, bool copy)
bool EndObject (SizeType)
bool StartArray ()
bool EndArray (SizeType)

Public Attributes

unsigned step_

Additional Inherited Members

Public Types inherited from BaseReaderHandler< UTF8<>, ParseMultipleRootHandler >
typedef UTF8<>::Ch Ch
typedef internal::SelectIf< internal::IsSame< ParseMultipleRootHandler, void >, BaseReaderHandler, ParseMultipleRootHandler >::Type Override

Detailed Description

Definition at line 1175 of file readertest.cpp.

Constructor & Destructor Documentation

◆ ParseMultipleRootHandler()

ParseMultipleRootHandler::ParseMultipleRootHandler ( )
inline

Definition at line 1176 of file readertest.cpp.

1176: step_(0) {}

Member Function Documentation

◆ Default()

bool ParseMultipleRootHandler::Default ( )
inline

Definition at line 1178 of file readertest.cpp.

1178{ ADD_FAILURE(); return false; }
#define ADD_FAILURE()
Definition gtest.h:1808

◆ EndArray()

bool ParseMultipleRootHandler::EndArray ( SizeType )
inline

Definition at line 1182 of file readertest.cpp.

1182{ EXPECT_EQ(3u, step_); step_++; return true; }
#define EXPECT_EQ(val1, val2)
Definition gtest.h:1922

◆ EndObject()

bool ParseMultipleRootHandler::EndObject ( SizeType )
inline

Definition at line 1180 of file readertest.cpp.

1180{ EXPECT_EQ(1u, step_); step_++; return true; }

◆ StartArray()

bool ParseMultipleRootHandler::StartArray ( )
inline

Definition at line 1181 of file readertest.cpp.

1181{ EXPECT_EQ(2u, step_); step_++; return true; }

◆ StartObject()

bool ParseMultipleRootHandler::StartObject ( )
inline

Definition at line 1179 of file readertest.cpp.

1179{ EXPECT_EQ(0u, step_); step_++; return true; }

Member Data Documentation

◆ step_

unsigned ParseMultipleRootHandler::step_

Definition at line 1184 of file readertest.cpp.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/test/unittest/readertest.cpp