Public Types | Public Member Functions | List of all members
BaseReaderHandler< Encoding, Derived > Struct Template Reference

Default implementation of Handler. More...

#include <fwd.h>

Public Types

typedef Encoding::Ch Ch
 
typedef internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
 

Public Member Functions

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) More...
 
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)
 

Detailed Description

template<typename Encoding = UTF8<>, typename Derived = void>
struct BaseReaderHandler< Encoding, Derived >

Default implementation of Handler.

This can be used as base class of any reader handler.

Note
implements Handler concept

Definition at line 85 of file fwd.h.

Member Typedef Documentation

template<typename Encoding = UTF8<>, typename Derived = void>
typedef Encoding::Ch BaseReaderHandler< Encoding, Derived >::Ch

Definition at line 197 of file reader.h.

template<typename Encoding = UTF8<>, typename Derived = void>
typedef internal::SelectIf<internal::IsSame<Derived, void>, BaseReaderHandler, Derived>::Type BaseReaderHandler< Encoding, Derived >::Override

Definition at line 199 of file reader.h.

Member Function Documentation

template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Bool ( bool  )
inline

Definition at line 203 of file reader.h.

203 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Default ( )
inline

Definition at line 201 of file reader.h.

201 { return true; }
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Double ( double  )
inline

Definition at line 208 of file reader.h.

208 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::EndArray ( SizeType  )
inline

Definition at line 216 of file reader.h.

216 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::EndObject ( SizeType  )
inline

Definition at line 214 of file reader.h.

214 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Int ( int  )
inline

Definition at line 204 of file reader.h.

204 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Int64 ( int64_t  )
inline

Definition at line 206 of file reader.h.

206 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Key ( const Ch str,
SizeType  len,
bool  copy 
)
inline

Definition at line 213 of file reader.h.

213 { return static_cast<Override&>(*this).String(str, len, copy); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
T copy(T const &v)
static QCString str
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Null ( )
inline

Definition at line 202 of file reader.h.

202 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::RawNumber ( const Ch str,
SizeType  len,
bool  copy 
)
inline

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

Definition at line 210 of file reader.h.

210 { return static_cast<Override&>(*this).String(str, len, copy); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
T copy(T const &v)
static QCString str
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::StartArray ( )
inline

Definition at line 215 of file reader.h.

215 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::StartObject ( )
inline

Definition at line 212 of file reader.h.

212 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::String ( const Ch ,
SizeType  ,
bool   
)
inline

Definition at line 211 of file reader.h.

211 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Uint ( unsigned  )
inline

Definition at line 205 of file reader.h.

205 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Uint64 ( uint64_t  )
inline

Definition at line 207 of file reader.h.

207 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:199

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