TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BaseReaderHandler< Encoding, Derived > Struct Template Reference

Default implementation of Handler. More...

#include <reader.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 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

Member Typedef Documentation

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

Member Function Documentation

template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Bool ( bool  )
inline
188 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Default ( )
inline
186 { return true; }
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Double ( double  )
inline
193 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::EndArray ( SizeType  )
inline
199 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::EndObject ( SizeType  )
inline
197 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Int ( int  )
inline
189 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Int64 ( int64_t  )
inline
191 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Key ( const Ch str,
SizeType  len,
bool  copy 
)
inline
196 { return static_cast<Override&>(*this).String(str, len, copy); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Null ( )
inline
187 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::StartArray ( )
inline
198 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::StartObject ( )
inline
195 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::String ( const Ch ,
SizeType  ,
bool   
)
inline
194 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Uint ( unsigned  )
inline
190 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184
template<typename Encoding = UTF8<>, typename Derived = void>
bool BaseReaderHandler< Encoding, Derived >::Uint64 ( uint64_t  )
inline
192 { return static_cast<Override&>(*this).Default(); }
internal::SelectIf< internal::IsSame< Derived, void >, BaseReaderHandler, Derived >::Type Override
Definition: reader.h:184

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