tudocomp
– The TU Dortmund Compression Framework
tdc::json::Value Class Referenceabstract

Represents a single value that can be represented as a JSON string. More...

#include <Json.hpp>

Inheritance diagram for tdc::json::Value:
tdc::json::Array tdc::json::Object tdc::json::TValue< T >

Public Member Functions

virtual void str (std::ostream &s, unsigned int level=0) const =0
 Writes this value's JSON string representation into the given output stream. More...
 
std::string str () const
 Returns this value's JSON string representation. More...
 

Detailed Description

Represents a single value that can be represented as a JSON string.

Definition at line 20 of file Json.hpp.

Member Function Documentation

◆ str() [1/2]

virtual void tdc::json::Value::str ( std::ostream &  s,
unsigned int  level = 0 
) const
pure virtual

Writes this value's JSON string representation into the given output stream.

Parameters
sthe output stream to write to
levelthe indentation level

Implemented in tdc::json::Object, tdc::json::Array, and tdc::json::TValue< T >.

◆ str() [2/2]

std::string tdc::json::Value::str ( ) const
inline

Returns this value's JSON string representation.

Returns
this value's JSON string representation

Definition at line 32 of file Json.hpp.


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