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

Public Member Functions

 MyHandler ()
 
bool Null ()
 
bool Bool (bool b)
 
bool Int (int i)
 
bool Uint (unsigned u)
 
bool Int64 (int64_t i)
 
bool Uint64 (uint64_t u)
 
bool Double (double d)
 
bool RawNumber (const char *str, SizeType length, bool)
 
bool String (const char *str, SizeType length, bool)
 
bool StartObject ()
 
bool Key (const char *str, SizeType length, bool)
 
bool EndObject (SizeType memberCount)
 
bool StartArray ()
 
bool EndArray (SizeType elementCount)
 
bool Null ()
 
bool Bool (bool b)
 
bool Int (int i)
 
bool Uint (unsigned u)
 
bool Int64 (int64_t i)
 
bool Uint64 (uint64_t u)
 
bool Double (double d)
 
bool RawNumber (const char *str, SizeType length, bool copy)
 
bool String (const char *str, SizeType length, bool copy)
 
bool StartObject ()
 
bool Key (const char *str, SizeType length, bool copy)
 
bool EndObject (SizeType memberCount)
 
bool StartArray ()
 
bool EndArray (SizeType elementCount)
 

Public Attributes

const char * type
 
std::string data
 

Detailed Description

Definition at line 15 of file simplepullreader.cpp.

Constructor & Destructor Documentation

◆ MyHandler()

MyHandler::MyHandler ( )
inline

Definition at line 19 of file simplepullreader.cpp.

19: type(), data() {}
std::string data
const char * type

Member Function Documentation

◆ Bool() [1/2]

bool MyHandler::Bool ( bool b)
inline

Definition at line 22 of file simplepullreader.cpp.

22{ type = "Bool:"; data = b? "true": "false"; return true; }

◆ Bool() [2/2]

bool MyHandler::Bool ( bool b)
inline

Definition at line 9 of file simplereader.cpp.

9{ cout << "Bool(" << boolalpha << b << ")" << endl; return true; }

◆ Double() [1/2]

bool MyHandler::Double ( double d)
inline

Definition at line 27 of file simplepullreader.cpp.

27{ type = "Double:"; data = stringify(d); return true; }
std::string stringify(T x)
Here is the call graph for this function:

◆ Double() [2/2]

bool MyHandler::Double ( double d)
inline

Definition at line 14 of file simplereader.cpp.

14{ cout << "Double(" << d << ")" << endl; return true; }
CK_ULONG d

◆ EndArray() [1/2]

bool MyHandler::EndArray ( SizeType elementCount)
inline

Definition at line 34 of file simplepullreader.cpp.

34{ type = "EndArray:"; data = stringify(elementCount); return true; }
Here is the call graph for this function:

◆ EndArray() [2/2]

bool MyHandler::EndArray ( SizeType elementCount)
inline

Definition at line 30 of file simplereader.cpp.

30{ cout << "EndArray(" << elementCount << ")" << endl; return true; }

◆ EndObject() [1/2]

bool MyHandler::EndObject ( SizeType memberCount)
inline

Definition at line 32 of file simplepullreader.cpp.

32{ type = "EndObject:"; data = stringify(memberCount); return true; }
Here is the call graph for this function:

◆ EndObject() [2/2]

bool MyHandler::EndObject ( SizeType memberCount)
inline

Definition at line 28 of file simplereader.cpp.

28{ cout << "EndObject(" << memberCount << ")" << endl; return true; }

◆ Int() [1/2]

bool MyHandler::Int ( int i)
inline

Definition at line 23 of file simplepullreader.cpp.

23{ type = "Int:"; data = stringify(i); return true; }
Here is the call graph for this function:

◆ Int() [2/2]

bool MyHandler::Int ( int i)
inline

Definition at line 10 of file simplereader.cpp.

10{ cout << "Int(" << i << ")" << endl; return true; }

◆ Int64() [1/2]

bool MyHandler::Int64 ( int64_t i)
inline

Definition at line 25 of file simplepullreader.cpp.

25{ type = "Int64:"; data = stringify(i); return true; }
Here is the call graph for this function:

◆ Int64() [2/2]

bool MyHandler::Int64 ( int64_t i)
inline

Definition at line 12 of file simplereader.cpp.

12{ cout << "Int64(" << i << ")" << endl; return true; }

◆ Key() [1/2]

bool MyHandler::Key ( const char * str,
SizeType length,
bool copy )
inline

Definition at line 24 of file simplereader.cpp.

24 {
25 cout << "Key(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl;
26 return true;
27 }
return str
Definition CLI11.hpp:1359
void copy(const path &from, const path &to)

◆ Key() [2/2]

bool MyHandler::Key ( const char * str,
SizeType length,
bool  )
inline

Definition at line 31 of file simplepullreader.cpp.

31{ type = "Key:"; data = std::string(str, length); return true; }

◆ Null() [1/2]

bool MyHandler::Null ( )
inline

Definition at line 21 of file simplepullreader.cpp.

21{ type = "Null"; data.clear(); return true; }

◆ Null() [2/2]

bool MyHandler::Null ( )
inline

Definition at line 8 of file simplereader.cpp.

8{ cout << "Null()" << endl; return true; }

◆ RawNumber() [1/2]

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

Definition at line 15 of file simplereader.cpp.

15 {
16 cout << "Number(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl;
17 return true;
18 }

◆ RawNumber() [2/2]

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

Definition at line 28 of file simplepullreader.cpp.

28{ type = "Number:"; data = std::string(str, length); return true; }

◆ StartArray() [1/2]

bool MyHandler::StartArray ( )
inline

Definition at line 33 of file simplepullreader.cpp.

33{ type = "StartArray"; data.clear(); return true; }

◆ StartArray() [2/2]

bool MyHandler::StartArray ( )
inline

Definition at line 29 of file simplereader.cpp.

29{ cout << "StartArray()" << endl; return true; }

◆ StartObject() [1/2]

bool MyHandler::StartObject ( )
inline

Definition at line 30 of file simplepullreader.cpp.

30{ type = "StartObject"; data.clear(); return true; }

◆ StartObject() [2/2]

bool MyHandler::StartObject ( )
inline

Definition at line 23 of file simplereader.cpp.

23{ cout << "StartObject()" << endl; return true; }

◆ String() [1/2]

bool MyHandler::String ( const char * str,
SizeType length,
bool copy )
inline

Definition at line 19 of file simplereader.cpp.

19 {
20 cout << "String(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl;
21 return true;
22 }

◆ String() [2/2]

bool MyHandler::String ( const char * str,
SizeType length,
bool  )
inline

Definition at line 29 of file simplepullreader.cpp.

29{ type = "String:"; data = std::string(str, length); return true; }

◆ Uint() [1/2]

bool MyHandler::Uint ( unsigned u)
inline

Definition at line 24 of file simplepullreader.cpp.

24{ type = "Uint:"; data = stringify(u); return true; }
Here is the call graph for this function:

◆ Uint() [2/2]

bool MyHandler::Uint ( unsigned u)
inline

Definition at line 11 of file simplereader.cpp.

11{ cout << "Uint(" << u << ")" << endl; return true; }

◆ Uint64() [1/2]

bool MyHandler::Uint64 ( uint64_t u)
inline

Definition at line 26 of file simplepullreader.cpp.

26{ type = "Uint64:"; data = stringify(u); return true; }
Here is the call graph for this function:

◆ Uint64() [2/2]

bool MyHandler::Uint64 ( uint64_t u)
inline

Definition at line 13 of file simplereader.cpp.

13{ cout << "Uint64(" << u << ")" << endl; return true; }

Member Data Documentation

◆ data

std::string MyHandler::data

Definition at line 17 of file simplepullreader.cpp.

◆ type

const char* MyHandler::type

Definition at line 16 of file simplepullreader.cpp.


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