Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
NumbersAsStringsHandler Struct Reference
Collaboration diagram for NumbersAsStringsHandler:

Public Member Functions

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 char *str, SizeType length, bool)
 
bool String (const char *, SizeType, bool)
 
bool StartObject ()
 
bool Key (const char *, SizeType, bool)
 
bool EndObject (SizeType)
 
bool StartArray ()
 
bool EndArray (SizeType)
 
 NumbersAsStringsHandler (const char *expected)
 

Public Attributes

const char * expected_
 
size_t expected_len_
 

Detailed Description

Definition at line 1879 of file readertest.cpp.

Constructor & Destructor Documentation

◆ NumbersAsStringsHandler()

NumbersAsStringsHandler::NumbersAsStringsHandler ( const char * expected)
inline

Definition at line 1901 of file readertest.cpp.

1902 : expected_(expected)
1903 , expected_len_(strlen(expected)) {}

Member Function Documentation

◆ Bool()

bool NumbersAsStringsHandler::Bool ( bool )
inline

Definition at line 1881 of file readertest.cpp.

1881{ return true; }

◆ Double()

bool NumbersAsStringsHandler::Double ( double )
inline

Definition at line 1886 of file readertest.cpp.

1886{ return true; }

◆ EndArray()

bool NumbersAsStringsHandler::EndArray ( SizeType )
inline

Definition at line 1899 of file readertest.cpp.

1899{ return true; }

◆ EndObject()

bool NumbersAsStringsHandler::EndObject ( SizeType )
inline

Definition at line 1897 of file readertest.cpp.

1897{ return true; }

◆ Int()

bool NumbersAsStringsHandler::Int ( int )
inline

Definition at line 1882 of file readertest.cpp.

1882{ return true; }

◆ Int64()

bool NumbersAsStringsHandler::Int64 ( int64_t )
inline

Definition at line 1884 of file readertest.cpp.

1884{ return true; }

◆ Key()

bool NumbersAsStringsHandler::Key ( const char * ,
SizeType ,
bool  )
inline

Definition at line 1896 of file readertest.cpp.

1896{ return true; }

◆ Null()

bool NumbersAsStringsHandler::Null ( )
inline

Definition at line 1880 of file readertest.cpp.

1880{ return true; }

◆ RawNumber()

bool NumbersAsStringsHandler::RawNumber ( const char * str,
SizeType length,
bool  )
inline

Definition at line 1888 of file readertest.cpp.

1888 {
1889 EXPECT_TRUE(str != 0);
1890 EXPECT_TRUE(expected_len_ == length);
1891 EXPECT_TRUE(strncmp(str, expected_, length) == 0);
1892 return true;
1893 }
#define EXPECT_TRUE(condition)
Definition gtest.h:1895

◆ StartArray()

bool NumbersAsStringsHandler::StartArray ( )
inline

Definition at line 1898 of file readertest.cpp.

1898{ return true; }

◆ StartObject()

bool NumbersAsStringsHandler::StartObject ( )
inline

Definition at line 1895 of file readertest.cpp.

1895{ return true; }

◆ String()

bool NumbersAsStringsHandler::String ( const char * ,
SizeType ,
bool  )
inline

Definition at line 1894 of file readertest.cpp.

1894{ return true; }

◆ Uint()

bool NumbersAsStringsHandler::Uint ( unsigned )
inline

Definition at line 1883 of file readertest.cpp.

1883{ return true; }

◆ Uint64()

bool NumbersAsStringsHandler::Uint64 ( uint64_t )
inline

Definition at line 1885 of file readertest.cpp.

1885{ return true; }

Member Data Documentation

◆ expected_

const char* NumbersAsStringsHandler::expected_

Definition at line 1905 of file readertest.cpp.

◆ expected_len_

size_t NumbersAsStringsHandler::expected_len_

Definition at line 1906 of file readertest.cpp.


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