MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
mrs::json::ParseFileSharingOptions Class Reference

#include <parse_file_sharing_options.h>

Inheritance diagram for mrs::json::ParseFileSharingOptions:
[legend]

Public Member Functions

template<typename ValueType , typename Container >
bool push_value_when_matches (const std::string &starts, const std::string &key, const ValueType &vt, Container *push_to)
 
template<typename ValueType >
void handle_array_value (const std::string &key, const ValueType &vt)
 
template<typename ValueType >
void handle_object_value (const std::string &key, const ValueType &vt)
 
template<typename ValueType >
void handle_value (const ValueType &vt)
 
bool String (const Ch *v, rapidjson::SizeType v_len, bool) override
 
bool RawNumber (const Ch *v, rapidjson::SizeType v_len, bool) override
 enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length) More...
 
bool Bool (bool v) override
 
- Public Member Functions inherited from helper::json::RapidReaderHandlerToStruct< FileSharing >
 RapidReaderHandlerToStruct (const std::string &separator=".")
 
virtual ~RapidReaderHandlerToStruct ()=default
 
const FileSharing & get_result ()
 
virtual bool on_new_value ()
 
virtual bool Null ()
 
virtual bool Int (int)
 
virtual bool Uint (unsigned)
 
virtual bool Int64 (int64_t)
 
virtual bool Uint64 (uint64_t)
 
virtual bool Double (double)
 
virtual void empty_object ()
 
virtual void empty_array ()
 
bool StartObject ()
 
bool EndObject (rapidjson::SizeType)
 
bool Key (const Ch *str, rapidjson::SizeType len, bool)
 
bool StartArray ()
 
bool EndArray (rapidjson::SizeType)
 

Private Member Functions

template<typename T >
std::string to_string (const T &v)
 
std::string to_string (const std::string &str)
 
template<typename T >
std::string from_base64 (const T &str)
 
std::string from_base64 (const std::string &str)
 
template<typename Container >
void push_key_value (Container *c, const std::string &, const std::string &value)
 
void push_key_value (std::map< std::string, std::string > *c, const std::string &key, const std::string &value)
 

Additional Inherited Members

- Public Types inherited from helper::json::RapidReaderHandlerToStruct< FileSharing >
using Handler = RapidReaderHandlerToStruct< FileSharing >
 
using Parent = rapidjson::BaseReaderHandler< rapidjson::UTF8<>, RapidReaderHandlerToStruct< FileSharing > >
 
using Ch = typename Parent::Ch
 
using Result = FileSharing
 
- Static Public Attributes inherited from helper::json::RapidReaderHandlerToStruct< FileSharing >
constexpr static rapidjson::ParseFlag k_parse_flags
 
- Protected Member Functions inherited from helper::json::RapidReaderHandlerToStruct< FileSharing >
bool is_object_path ()
 
bool is_array_value ()
 
int get_level () const
 
std::string get_current_key () const
 
std::list< KeyValue > get_keys () const
 
- Protected Attributes inherited from helper::json::RapidReaderHandlerToStruct< FileSharing >
FileSharing result_
 
const std::string separator_
 

Member Function Documentation

◆ Bool()

bool mrs::json::ParseFileSharingOptions::Bool ( bool  v)
inlineoverridevirtual

◆ from_base64() [1/2]

std::string mrs::json::ParseFileSharingOptions::from_base64 ( const std::string &  str)
inlineprivate

◆ from_base64() [2/2]

template<typename T >
std::string mrs::json::ParseFileSharingOptions::from_base64 ( const T str)
inlineprivate

◆ handle_array_value()

template<typename ValueType >
void mrs::json::ParseFileSharingOptions::handle_array_value ( const std::string &  key,
const ValueType &  vt 
)
inline

◆ handle_object_value()

template<typename ValueType >
void mrs::json::ParseFileSharingOptions::handle_object_value ( const std::string &  key,
const ValueType &  vt 
)
inline

◆ handle_value()

template<typename ValueType >
void mrs::json::ParseFileSharingOptions::handle_value ( const ValueType &  vt)
inline

◆ push_key_value() [1/2]

template<typename Container >
void mrs::json::ParseFileSharingOptions::push_key_value ( Container *  c,
const std::string &  ,
const std::string &  value 
)
inlineprivate

◆ push_key_value() [2/2]

void mrs::json::ParseFileSharingOptions::push_key_value ( std::map< std::string, std::string > *  c,
const std::string &  key,
const std::string &  value 
)
inlineprivate

◆ push_value_when_matches()

template<typename ValueType , typename Container >
bool mrs::json::ParseFileSharingOptions::push_value_when_matches ( const std::string &  starts,
const std::string &  key,
const ValueType &  vt,
Container *  push_to 
)
inline

◆ RawNumber()

bool mrs::json::ParseFileSharingOptions::RawNumber ( const Ch ,
rapidjson::SizeType  ,
bool   
)
inlineoverridevirtual

enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)

Reimplemented from helper::json::RapidReaderHandlerToStruct< FileSharing >.

◆ String()

bool mrs::json::ParseFileSharingOptions::String ( const Ch v,
rapidjson::SizeType  v_len,
bool   
)
inlineoverridevirtual

◆ to_string() [1/2]

std::string mrs::json::ParseFileSharingOptions::to_string ( const std::string &  str)
inlineprivate

◆ to_string() [2/2]

template<typename T >
std::string mrs::json::ParseFileSharingOptions::to_string ( const T v)
inlineprivate

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