Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::util::converter::JsonObjectWriter Class Reference

#include <json_objectwriter.h>

Inheritance diagram for google::protobuf::util::converter::JsonObjectWriter:
Inheritance graph
[legend]

Classes

class  ByteSinkWrapper
 
class  Element
 

Public Member Functions

virtual JsonObjectWriterEndList ()
 
virtual JsonObjectWriterEndObject ()
 
 JsonObjectWriter (StringPiece indent_string, io::CodedOutputStream *out)
 
virtual JsonObjectWriterRenderBool (StringPiece name, bool value)
 
virtual JsonObjectWriterRenderBytes (StringPiece name, StringPiece value)
 
virtual JsonObjectWriterRenderDouble (StringPiece name, double value)
 
virtual JsonObjectWriterRenderFloat (StringPiece name, float value)
 
virtual JsonObjectWriterRenderInt32 (StringPiece name, int32 value)
 
virtual JsonObjectWriterRenderInt64 (StringPiece name, int64 value)
 
virtual JsonObjectWriterRenderNull (StringPiece name)
 
virtual JsonObjectWriterRenderNullAsEmpty (StringPiece name)
 
virtual JsonObjectWriterRenderString (StringPiece name, StringPiece value)
 
virtual JsonObjectWriterRenderUint32 (StringPiece name, uint32 value)
 
virtual JsonObjectWriterRenderUint64 (StringPiece name, uint64 value)
 
void set_use_websafe_base64_for_bytes (bool value)
 
virtual JsonObjectWriterStartList (StringPiece name)
 
virtual JsonObjectWriterStartObject (StringPiece name)
 
virtual ~JsonObjectWriter ()
 
- Public Member Functions inherited from google::protobuf::util::converter::StructuredObjectWriter
virtual ~StructuredObjectWriter ()
 
- Public Member Functions inherited from google::protobuf::util::converter::ObjectWriter
virtual bool done ()
 
void set_use_strict_base64_decoding (bool value)
 
bool use_strict_base64_decoding () const
 
virtual ~ObjectWriter ()
 

Protected Member Functions

Elementelement () override
 
- Protected Member Functions inherited from google::protobuf::util::converter::StructuredObjectWriter
 StructuredObjectWriter ()
 
- Protected Member Functions inherited from google::protobuf::util::converter::ObjectWriter
 ObjectWriter ()
 

Private Member Functions

 GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS (JsonObjectWriter)
 
void NewLine ()
 
void Pop ()
 
void PushArray ()
 
void PushObject ()
 
JsonObjectWriterRenderSimple (StringPiece name, const std::string &value)
 
void WriteChar (const char c)
 
void WritePrefix (StringPiece name)
 

Private Attributes

std::unique_ptr< Elementelement_
 
const std::string indent_string_
 
ByteSinkWrapper sink_
 
io::CodedOutputStreamstream_
 
bool use_websafe_base64_for_bytes_
 

Additional Inherited Members

- Static Public Member Functions inherited from google::protobuf::util::converter::ObjectWriter
static void RenderDataPieceTo (const DataPiece &data, StringPiece name, ObjectWriter *ow)
 

Detailed Description

Definition at line 88 of file json_objectwriter.h.

Constructor & Destructor Documentation

◆ JsonObjectWriter()

google::protobuf::util::converter::JsonObjectWriter::JsonObjectWriter ( StringPiece  indent_string,
io::CodedOutputStream out 
)
inline

Definition at line 90 of file json_objectwriter.h.

◆ ~JsonObjectWriter()

google::protobuf::util::converter::JsonObjectWriter::~JsonObjectWriter ( )
virtual

Definition at line 52 of file json_objectwriter.cc.

Member Function Documentation

◆ element()

Element* google::protobuf::util::converter::JsonObjectWriter::element ( )
inlineoverrideprotectedvirtual

◆ EndList()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::EndList ( )
virtual

◆ EndObject()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::EndObject ( )
virtual

◆ GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS()

google::protobuf::util::converter::JsonObjectWriter::GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS ( JsonObjectWriter  )
private

◆ NewLine()

void google::protobuf::util::converter::JsonObjectWriter::NewLine ( )
inlineprivate

Definition at line 197 of file json_objectwriter.h.

◆ Pop()

void google::protobuf::util::converter::JsonObjectWriter::Pop ( )
inlineprivate

Definition at line 189 of file json_objectwriter.h.

◆ PushArray()

void google::protobuf::util::converter::JsonObjectWriter::PushArray ( )
inlineprivate

Definition at line 179 of file json_objectwriter.h.

◆ PushObject()

void google::protobuf::util::converter::JsonObjectWriter::PushObject ( )
inlineprivate

Definition at line 184 of file json_objectwriter.h.

◆ RenderBool()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderBool ( StringPiece  name,
bool  value 
)
virtual

◆ RenderBytes()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderBytes ( StringPiece  name,
StringPiece  value 
)
virtual

◆ RenderDouble()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderDouble ( StringPiece  name,
double  value 
)
virtual

◆ RenderFloat()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderFloat ( StringPiece  name,
float  value 
)
virtual

◆ RenderInt32()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderInt32 ( StringPiece  name,
int32  value 
)
virtual

◆ RenderInt64()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderInt64 ( StringPiece  name,
int64  value 
)
virtual

◆ RenderNull()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderNull ( StringPiece  name)
virtual

◆ RenderNullAsEmpty()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderNullAsEmpty ( StringPiece  name)
virtual

Definition at line 172 of file json_objectwriter.cc.

◆ RenderSimple()

JsonObjectWriter* google::protobuf::util::converter::JsonObjectWriter::RenderSimple ( StringPiece  name,
const std::string value 
)
inlineprivate

Definition at line 171 of file json_objectwriter.h.

◆ RenderString()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderString ( StringPiece  name,
StringPiece  value 
)
virtual

◆ RenderUint32()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderUint32 ( StringPiece  name,
uint32  value 
)
virtual

◆ RenderUint64()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::RenderUint64 ( StringPiece  name,
uint64  value 
)
virtual

◆ set_use_websafe_base64_for_bytes()

void google::protobuf::util::converter::JsonObjectWriter::set_use_websafe_base64_for_bytes ( bool  value)
inline

Definition at line 116 of file json_objectwriter.h.

◆ StartList()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::StartList ( StringPiece  name)
virtual

◆ StartObject()

JsonObjectWriter * google::protobuf::util::converter::JsonObjectWriter::StartObject ( StringPiece  name)
virtual

◆ WriteChar()

void google::protobuf::util::converter::JsonObjectWriter::WriteChar ( const char  c)
inlineprivate

Definition at line 212 of file json_objectwriter.h.

◆ WritePrefix()

void google::protobuf::util::converter::JsonObjectWriter::WritePrefix ( StringPiece  name)
private

Definition at line 176 of file json_objectwriter.cc.

Member Data Documentation

◆ element_

std::unique_ptr<Element> google::protobuf::util::converter::JsonObjectWriter::element_
private

Definition at line 214 of file json_objectwriter.h.

◆ indent_string_

const std::string google::protobuf::util::converter::JsonObjectWriter::indent_string_
private

Definition at line 217 of file json_objectwriter.h.

◆ sink_

ByteSinkWrapper google::protobuf::util::converter::JsonObjectWriter::sink_
private

Definition at line 216 of file json_objectwriter.h.

◆ stream_

io::CodedOutputStream* google::protobuf::util::converter::JsonObjectWriter::stream_
private

Definition at line 215 of file json_objectwriter.h.

◆ use_websafe_base64_for_bytes_

bool google::protobuf::util::converter::JsonObjectWriter::use_websafe_base64_for_bytes_
private

Definition at line 221 of file json_objectwriter.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10