#include <iterator.hxx>
|
static Ostream & | Build (Ostream &os, const String &parentId, const String &name, int index, const String &comment="") |
|
static Writer & | Build (Writer &writer, const String &parentId, const String &name, int index, const String &comment="") |
|
template<typename T > |
static const T & | BuildIt (Ostream &os, const String &parentId, const String &name, int index, const T &it, const String &comment="") |
|
template<typename T > |
static const T & | BuildIt (Writer &writer, const String &parentId, const String &name, int index, const T &it, const String &comment="") |
|
parameter.
Definition at line 31 of file iterator.hxx.
SHA_Logger::Iterator::~Iterator |
( |
| ) |
|
|
inline |
Definition at line 35 of file iterator.hxx.
35 { assert(this->
writer->IsComplete()); }
std::unique_ptr< Writer > writer
SHA_Logger::Iterator::Iterator |
( |
Ostream & |
os | ) |
|
|
inlineprivate |
Definition at line 92 of file iterator.hxx.
std::unique_ptr< Writer > writer
rapidjson::OStreamWrapper Stream
std::unique_ptr< Stream > stream
rapidjson::PrettyWriter< Stream > Writer
Instantiate a new json writer using the stream passed as argument and write iterator information.
- Returns
- stream reference filled up with Iterator object information, error information in case of failure.
Definition at line 43 of file iterator.hxx.
45 std::unique_ptr<Iterator> builder = std::unique_ptr<Iterator>(
new Iterator(os));
46 builder->Write(parentId, name, index, comment);
Use json writer passed as parameter to write iterator information.
- Returns
- stream reference filled up with Iterator object information, error information in case of failure.
Definition at line 56 of file iterator.hxx.
std::unique_ptr< Writer > writer
bool Write(const String &parentId, const String &name, int index, const String &comment)
template<typename T >
static const T& SHA_Logger::Iterator::BuildIt |
( |
Ostream & |
os, |
|
|
const String & |
parentId, |
|
|
const String & |
name, |
|
|
int |
index, |
|
|
const T & |
it, |
|
|
const String & |
comment = "" |
|
) |
| |
|
inlinestatic |
Instantiate a new json writer using the stream passed as argument and write iterator information.
- Returns
- stream reference filled up with Iterator object information, error information in case of failure.
Definition at line 69 of file iterator.hxx.
72 std::unique_ptr<Iterator> builder = std::unique_ptr<Iterator>(
new Iterator(os));
73 builder->Write(parentId, name, index, comment);
template<typename T >
static const T& SHA_Logger::Iterator::BuildIt |
( |
Writer & |
writer, |
|
|
const String & |
parentId, |
|
|
const String & |
name, |
|
|
int |
index, |
|
|
const T & |
it, |
|
|
const String & |
comment = "" |
|
) |
| |
|
inlinestatic |
Use json writer passed as parameter to write iterator information.
- Returns
- stream reference filled up with Iterator object information, error information in case of failure.
Definition at line 83 of file iterator.hxx.
std::unique_ptr< Writer > writer
bool Write(const String &parentId, const String &name, int index, const String &comment)
bool SHA_Logger::Iterator::Write |
( |
const String & |
parentId, |
|
|
const String & |
name, |
|
|
int |
index, |
|
|
const String & |
comment |
|
) |
| |
|
inlineprivate |
Definition at line 96 of file iterator.hxx.
97 {
return Write(*this->
writer, parentId, name, index, comment); }
std::unique_ptr< Writer > writer
bool Write(const String &parentId, const String &name, int index, const String &comment)
static bool SHA_Logger::Iterator::Write |
( |
Writer & |
writer, |
|
|
const String & |
parentId, |
|
|
const String & |
name, |
|
|
int |
index, |
|
|
const String & |
comment |
|
) |
| |
|
inlinestaticprivate |
Definition at line 100 of file iterator.hxx.
103 if (parentId.empty() || name.empty())
106 "Missing parameter: " +
107 (parentId.empty()) ?
"+ parentId " :
"" +
108 (name.empty()) ?
"+ name " :
"");
115 writer.String(
"iterator");
126 if (!comment.empty())
static Ostream & Build(Ostream &os, const String &file, int line, const String &message)
std::unique_ptr< Writer > writer
std::unique_ptr<Stream> SHA_Logger::Iterator::stream |
|
private |
std::unique_ptr<Writer> SHA_Logger::Iterator::writer |
|
private |
The documentation for this class was generated from the following file: