TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StreamTraits< Stream > Struct Template Reference

Provides additional information for stream. More...

#include <rapidjson.h>

Public Types

enum  { copyOptimization = 0 }
 Whether to make local copy of stream for optimization during parsing. More...
 

Detailed Description

template<typename Stream>
struct StreamTraits< Stream >

Provides additional information for stream.

By using traits pattern, this type provides a default configuration for stream. For custom stream, this type can be specialized for other configuration. See TEST(Reader, CustomStringStream) in readertest.cpp for example.

Member Enumeration Documentation

template<typename Stream >
anonymous enum

Whether to make local copy of stream for optimization during parsing.

By default, for safety, streams do not use local copy optimization. Stream that can be copied fast should specialize this, like StreamTraits<StringStream>.

Enumerator
copyOptimization 
554 { copyOptimization = 0 };
Definition: rapidjson.h:554

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