Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
RapidJson Class Reference
Inheritance diagram for RapidJson:
Collaboration diagram for RapidJson:

Public Member Functions

 RapidJson ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Protected Attributes

char * temp_
 
Document doc_
 
Document typesDoc_ [7]
 

Detailed Description

Definition at line 42 of file rapidjsontest.cpp.

Constructor & Destructor Documentation

◆ RapidJson()

RapidJson::RapidJson ( )
inline

Definition at line 44 of file rapidjsontest.cpp.

44: temp_(), doc_() {}
Document doc_

Member Function Documentation

◆ SetUp()

virtual void RapidJson::SetUp ( )
inlinevirtual

Definition at line 46 of file rapidjsontest.cpp.

46 {
47 PerfTest::SetUp();
48
49 // temp buffer for insitu parsing.
50 temp_ = (char *)malloc(length_ + 1);
51
52 // Parse as a document
54
55 for (size_t i = 0; i < 7; i++)
56 EXPECT_FALSE(typesDoc_[i].Parse(types_[i]).HasParseError());
57 }
bool HasParseError() const
Whether a parse error has occurred in the last parsing.
Definition document.h:2388
GenericDocument & Parse(const typename SourceEncoding::Ch *str)
Parse JSON text from a read-only string (with Encoding conversion)
Definition document.h:2325
Document typesDoc_[7]
#define EXPECT_FALSE(condition)
Definition gtest.h:1898
Here is the call graph for this function:

◆ TearDown()

virtual void RapidJson::TearDown ( )
inlinevirtual

Definition at line 59 of file rapidjsontest.cpp.

59 {
60 PerfTest::TearDown();
61 free(temp_);
62 }

Member Data Documentation

◆ doc_

Document RapidJson::doc_
protected

Definition at line 70 of file rapidjsontest.cpp.

◆ temp_

char* RapidJson::temp_
protected

Definition at line 69 of file rapidjsontest.cpp.

◆ typesDoc_

Document RapidJson::typesDoc_[7]
protected

Definition at line 71 of file rapidjsontest.cpp.


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