NCBI C++ ToolKit
Public Types | List of all members
rapidjson::StreamTraits< Stream > Struct Template Reference

Search Toolkit Book for rapidjson::StreamTraits

Provides additional information for stream. More...

#include <misc/jsonwrapp/rapidjson11/stream.h>

Public Types

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

Detailed Description

template<typename Stream>
struct rapidjson::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.

Definition at line 73 of file stream.h.

Member Enumeration Documentation

◆ anonymous enum

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 

Definition at line 79 of file stream.h.


The documentation for this struct was generated from the following file:
Modified on Tue Apr 23 07:38:10 2024 by modify_doxy.py rev. 669887