Writes a Value in JSON format in a human friendly way. More...
#include <writer.h>
Public Member Functions | |
StyledWriter () | |
virtual std::string | write (const Value &root) |
Serialize a Value in JSON format. More... | |
virtual | ~StyledWriter () |
Public Member Functions inherited from Json::Writer | |
virtual | ~Writer () |
Private Types | |
typedef std::vector< std::string > | ChildValues |
Private Member Functions | |
bool | hasCommentForValue (const Value &value) |
void | indent () |
bool | isMultineArray (const Value &value) |
void | pushValue (const std::string &value) |
void | unindent () |
void | writeArrayValue (const Value &value) |
void | writeCommentAfterValueOnSameLine (const Value &root) |
void | writeCommentBeforeValue (const Value &root) |
void | writeIndent () |
void | writeValue (const Value &value) |
void | writeWithIndent (const std::string &value) |
Static Private Member Functions | |
static std::string | normalizeEOL (const std::string &text) |
Private Attributes | |
bool | addChildValues_ |
ChildValues | childValues_ |
std::string | document_ |
int | indentSize_ |
std::string | indentString_ |
int | rightMargin_ |
Writes a Value in JSON format in a human friendly way.
The rules for line break and indent are as follow:
If the Value have comments then they are outputed according to their CommentPlacement.
|
private |
Json::StyledWriter::StyledWriter | ( | ) |
|
inlinevirtual |
Definition at line 69 of file writer.h.
References summarizeEdmComparisonLogfiles::indent, AlCaHLTBitMon_QueryRunRegistry::string, RecoTauValidation_cfi::text, TriggerAnalyzer::write(), and edm::writeParameterValue::writeValue().
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
virtual |
Serialize a Value in JSON format.
root | Value to serialize. |
Implements Json::Writer.
Referenced by HLTriggerJSONMonitoring::beginRun(), L1TriggerJSONMonitoring::beginRun(), TriggerJSONMonitoring::beginRun(), pkg.AbstractPkg::generate(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), evf::FastMonitoringService::makeInputLegendaJson(), evf::FastMonitoringService::makeModuleLegendaJson(), evf::FastMonitoringService::makePathLegendaJson(), jsoncollector::FastMonitor::outputFullJSON(), jsoncollector::FastMonitor::outputFullJSONs(), and jsoncollector::JSONSerializer::serialize().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |