| 
    AvTranscoder
    0.9.4
    
   C++APIforLibav/FFmpeg 
   | 
 
Based class to write element to a stream. More...
#include <JsonWriter.hpp>
Public Member Functions | |
| JsonStreamWriter () | |
| virtual | ~JsonStreamWriter () | 
| virtual std::string | build () | 
| template<> | |
| JsonStreamWriter & | operator<< (bool value) | 
| template<> | |
| JsonStreamWriter & | operator<< (const char *string) | 
| template<> | |
| JsonStreamWriter & | operator<< (JsonNull) | 
Protected Member Functions | |
| template<typename T > | |
| JsonStreamWriter & | operator<< (T value) | 
| JsonStreamWriter & | addSep () | 
| virtual std::ostream & | finish ()=0 | 
| std::string | escapeJsonString (const std::string &input) | 
Protected Attributes | |
| std::ostringstream | stream | 
| bool | first | 
Friends | |
| class | JsonObjectStreamWriter | 
| class | JsonArrayStreamWriter | 
Based class to write element to a stream.
Definition at line 24 of file JsonWriter.hpp.
      
  | 
  inline | 
Definition at line 27 of file JsonWriter.hpp.
      
  | 
  inlinevirtual | 
Definition at line 31 of file JsonWriter.hpp.
      
  | 
  inlineprotected | 
Definition at line 52 of file JsonWriter.hpp.
      
  | 
  inlinevirtual | 
Definition at line 33 of file JsonWriter.hpp.
Referenced by avtranscoder::FileProperties::allPropertiesAsJson(), avtranscoder::StreamProperties::asJson(), and avtranscoder::FileProperties::asJson().
      
  | 
  protected | 
Definition at line 11 of file JsonWriter.cpp.
      
  | 
  protectedpure virtual | 
Implemented in avtranscoder::json::JsonArrayStreamWriter, and avtranscoder::json::JsonObjectStreamWriter.
| JsonStreamWriter & avtranscoder::json::JsonStreamWriter::operator<< | ( | bool | value | ) | 
Definition at line 39 of file JsonWriter.cpp.
References stream.
| JsonStreamWriter & avtranscoder::json::JsonStreamWriter::operator<< | ( | const char * | string | ) | 
Definition at line 45 of file JsonWriter.cpp.
References stream.
      
  | 
  inlineprotected | 
Definition at line 46 of file JsonWriter.hpp.
| JsonStreamWriter & avtranscoder::json::JsonStreamWriter::operator<< | ( | JsonNull | ) | 
Definition at line 51 of file JsonWriter.cpp.
References stream.
      
  | 
  friend | 
Definition at line 41 of file JsonWriter.hpp.
      
  | 
  friend | 
Definition at line 40 of file JsonWriter.hpp.
      
  | 
  protected | 
Definition at line 43 of file JsonWriter.hpp.
Referenced by avtranscoder::json::JsonObjectStreamWriter::operator<<().
      
  | 
  protected | 
Definition at line 42 of file JsonWriter.hpp.
Referenced by operator<<().