| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <jsonstreamwriter.h>
 Public Member Functions | |
| JsonStreamWriter (QIODevice *device) | |
| virtual | ~JsonStreamWriter () | 
| void | startArray () | 
| void | endArray () | 
| void | startMap () | 
| void | endMap () | 
| void | writeCborMap (const QCborMap &cbor_map) | 
| void | writeCborArray (const QCborArray &cbor_array) | 
| void | appendKey (const QString &key) | 
| void | appendValue (const QString &value) | 
| void | writeArray (QStringList &str_list) | 
Protected Member Functions | |
| void | comma () | 
Private Attributes | |
| bool | m_isStart = true | 
| bool | m_nextIsValue = false | 
Definition at line 38 of file jsonstreamwriter.h.
| pappso::cbor::JsonStreamWriter::JsonStreamWriter | ( | QIODevice * | device | ) | 
Default constructor
Definition at line 34 of file jsonstreamwriter.cpp.
      
  | 
  virtual | 
| void pappso::cbor::JsonStreamWriter::appendKey | ( | const QString & | key | ) | 
Definition at line 95 of file jsonstreamwriter.cpp.
References comma(), m_isStart, and m_nextIsValue.
| void pappso::cbor::JsonStreamWriter::appendValue | ( | const QString & | value | ) | 
Definition at line 105 of file jsonstreamwriter.cpp.
References m_nextIsValue.
      
  | 
  protected | 
Definition at line 118 of file jsonstreamwriter.cpp.
References m_isStart.
Referenced by appendKey(), startArray(), and startMap().
| void pappso::cbor::JsonStreamWriter::endArray | ( | ) | 
Definition at line 43 of file jsonstreamwriter.cpp.
References m_isStart, and m_nextIsValue.
| void pappso::cbor::JsonStreamWriter::endMap | ( | ) | 
Definition at line 51 of file jsonstreamwriter.cpp.
References m_isStart, and m_nextIsValue.
| void pappso::cbor::JsonStreamWriter::startArray | ( | ) | 
Definition at line 59 of file jsonstreamwriter.cpp.
References comma(), m_isStart, and m_nextIsValue.
| void pappso::cbor::JsonStreamWriter::startMap | ( | ) | 
Definition at line 67 of file jsonstreamwriter.cpp.
References comma(), m_isStart, and m_nextIsValue.
| void pappso::cbor::JsonStreamWriter::writeArray | ( | QStringList & | str_list | ) | 
Definition at line 112 of file jsonstreamwriter.cpp.
| void pappso::cbor::JsonStreamWriter::writeCborArray | ( | const QCborArray & | cbor_array | ) | 
Definition at line 85 of file jsonstreamwriter.cpp.
| void pappso::cbor::JsonStreamWriter::writeCborMap | ( | const QCborMap & | cbor_map | ) | 
Definition at line 76 of file jsonstreamwriter.cpp.
      
  | 
  private | 
Definition at line 67 of file jsonstreamwriter.h.
Referenced by appendKey(), comma(), endArray(), endMap(), startArray(), and startMap().
      
  | 
  private | 
Definition at line 68 of file jsonstreamwriter.h.
Referenced by appendKey(), appendValue(), endArray(), endMap(), startArray(), and startMap().