#include <value_type.hxx>
|
template<typename T > |
static std::ostream & | Build (std::ostream &os, const T &value) |
|
template<typename T > |
static Writer & | Build (Writer &writer, const T &value) |
|
template<typename IteratorT > |
static std::ostream & | BuildArray (std::ostream &os, const IteratorT &begin, const IteratorT &end) |
|
template<typename IteratorT > |
static Writer & | BuildArray (Writer &writer, const IteratorT &begin, const IteratorT &end) |
|
Definition at line 29 of file value_type.hxx.
SHA_Logger::ValueType::~ValueType |
( |
| ) |
|
|
inline |
Definition at line 33 of file value_type.hxx.
33 { assert(this->
writer->IsComplete()); }
std::unique_ptr< Writer > writer
SHA_Logger::ValueType::ValueType |
( |
std::ostream & |
os | ) |
|
|
inlineprivate |
Definition at line 99 of file value_type.hxx.
std::unique_ptr< Stream > stream
rapidjson::OStreamWrapper Stream
std::unique_ptr< Writer > writer
rapidjson::PrettyWriter< Stream > Writer
template<typename T >
static std::ostream& SHA_Logger::ValueType::Build |
( |
std::ostream & |
os, |
|
|
const T & |
value |
|
) |
| |
|
inlinestatic |
Instantiate a new json writer using the stream passed as argument and write Value_Type information depending on type.
- Returns
- stream reference filled up with Iterator object information, error information in case of failure.
Definition at line 41 of file value_type.hxx.
44 std::unique_ptr<ValueType> builder = std::unique_ptr<ValueType>(
new Iterator(os));
45 builder->Write(value);
template<typename T >
static Writer& SHA_Logger::ValueType::Build |
( |
Writer & |
writer, |
|
|
const T & |
value |
|
) |
| |
|
inlinestatic |
Use json writer passed as parameter to write Value_Type information.
- Returns
- stream reference filled up with Array object information depending on type, error information in case of failure.
Definition at line 55 of file value_type.hxx.
std::unique_ptr< Writer > writer
template<typename IteratorT >
static std::ostream& SHA_Logger::ValueType::BuildArray |
( |
std::ostream & |
os, |
|
|
const IteratorT & |
begin, |
|
|
const IteratorT & |
end |
|
) |
| |
|
inlinestatic |
Instantiate a new json writer using the stream passed as argument and write array information depending on type.
- Returns
- stream reference filled up with Iterator object information, error information in case of failure.
Definition at line 68 of file value_type.hxx.
71 std::unique_ptr<ValueType> builder = std::unique_ptr<ValueType>(
new ValueType(os));
74 builder->writer->StartArray();
75 for (
auto it = begin; it != end; ++it)
77 builder->writer->EndArray();
ValueType(std::ostream &os)
template<typename IteratorT >
static Writer& SHA_Logger::ValueType::BuildArray |
( |
Writer & |
writer, |
|
|
const IteratorT & |
begin, |
|
|
const IteratorT & |
end |
|
) |
| |
|
inlinestatic |
Use json writer passed as parameter to write array of value_type information.
- Returns
- stream reference filled up with Array object information depending on type, error information in case of failure.
Definition at line 87 of file value_type.hxx.
91 for (
auto it = begin; it != end; ++it)
std::unique_ptr< Writer > writer
template<typename T >
bool SHA_Logger::ValueType::Write |
( |
T |
value | ) |
|
|
inlineprivate |
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
char |
value |
|
) |
| |
|
inlinestaticprivate |
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
bool |
value |
|
) |
| |
|
inlinestaticprivate |
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
double |
value |
|
) |
| |
|
inlinestaticprivate |
Definition at line 110 of file value_type.hxx.
110 {
return writer.Double(value); }
std::unique_ptr< Writer > writer
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
int |
value |
|
) |
| |
|
inlinestaticprivate |
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
int64_t |
value |
|
) |
| |
|
inlinestaticprivate |
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
const String & |
value |
|
) |
| |
|
inlinestaticprivate |
Definition at line 113 of file value_type.hxx.
113 {
return writer.String(value); }
std::unique_ptr< Writer > writer
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
unsigned |
value |
|
) |
| |
|
inlinestaticprivate |
static bool SHA_Logger::ValueType::Write |
( |
Writer & |
writer, |
|
|
uint64_t |
value |
|
) |
| |
|
inlinestaticprivate |
Definition at line 115 of file value_type.hxx.
115 {
return writer.Uint64(value); }
std::unique_ptr< Writer > writer
std::unique_ptr<Stream> SHA_Logger::ValueType::stream |
|
private |
std::unique_ptr<Writer> SHA_Logger::ValueType::writer |
|
private |
The documentation for this class was generated from the following file: