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

#include <protostream_objectwriter.h>

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

Classes

class  AnyWriter
 
class  Item
 
struct  Options
 

Public Member Functions

ProtoStreamObjectWriterEndList () override
 
ProtoStreamObjectWriterEndObject () override
 
 ProtoStreamObjectWriter (TypeResolver *type_resolver, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener, const ProtoStreamObjectWriter::Options &options=ProtoStreamObjectWriter::Options::Defaults())
 
ProtoStreamObjectWriterRenderDataPiece (StringPiece name, const DataPiece &data) override
 
ProtoStreamObjectWriterStartList (StringPiece name) override
 
ProtoStreamObjectWriterStartObject (StringPiece name) override
 
 ~ProtoStreamObjectWriter () override
 
- Public Member Functions inherited from google::protobuf::util::converter::ProtoWriter
void DecrementInvalidDepth ()
 
bool done () override
 
bool ignore_unknown_fields ()
 
void IncrementInvalidDepth ()
 
int invalid_depth ()
 
ErrorListenerlistener ()
 
const LocationTrackerInterfacelocation ()
 
 ProtoWriter (TypeResolver *type_resolver, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener)
 
ProtoWriterRenderBool (StringPiece name, bool value) override
 
ProtoWriterRenderBytes (StringPiece name, StringPiece value) override
 
ProtoWriterRenderDouble (StringPiece name, double value) override
 
ProtoWriterRenderFloat (StringPiece name, float value) override
 
ProtoWriterRenderInt32 (StringPiece name, int32 value) override
 
ProtoWriterRenderInt64 (StringPiece name, int64 value) override
 
ProtoWriterRenderNull (StringPiece name) override
 
ProtoWriterRenderString (StringPiece name, StringPiece value) override
 
ProtoWriterRenderUint32 (StringPiece name, uint32 value) override
 
ProtoWriterRenderUint64 (StringPiece name, uint64 value) override
 
void set_case_insensitive_enum_parsing (bool case_insensitive_enum_parsing)
 
void set_ignore_unknown_enum_values (bool ignore_unknown_enum_values)
 
void set_ignore_unknown_fields (bool ignore_unknown_fields)
 
void set_use_lower_camel_for_enums (bool use_lower_camel_for_enums)
 
io::CodedOutputStreamstream ()
 
const TypeInfotypeinfo ()
 
 ~ProtoWriter () override
 
- Public Member Functions inherited from google::protobuf::util::converter::StructuredObjectWriter
virtual ~StructuredObjectWriter ()
 
- Public Member Functions inherited from google::protobuf::util::converter::ObjectWriter
void set_use_strict_base64_decoding (bool value)
 
bool use_strict_base64_decoding () const
 
virtual ~ObjectWriter ()
 

Protected Types

typedef util::Status(* TypeRenderer) (ProtoStreamObjectWriter *, const DataPiece &)
 

Protected Member Functions

bool IsAny (const google::protobuf::Field &field)
 
bool IsMap (const google::protobuf::Field &field)
 
bool IsStruct (const google::protobuf::Field &field)
 
bool IsStructListValue (const google::protobuf::Field &field)
 
bool IsStructValue (const google::protobuf::Field &field)
 
void Pop ()
 
void PopOneElement ()
 
 ProtoStreamObjectWriter (const TypeInfo *typeinfo, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener)
 
 ProtoStreamObjectWriter (const TypeInfo *typeinfo, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener, const ProtoStreamObjectWriter::Options &options)
 
void Push (StringPiece name, Item::ItemType item_type, bool is_placeholder, bool is_list)
 
bool ValidMapKey (StringPiece unnormalized_name)
 
- Protected Member Functions inherited from google::protobuf::util::converter::ProtoWriter
const google::protobuf::FieldBeginNamed (StringPiece name, bool is_list)
 
ProtoElementelement () override
 
void InvalidName (StringPiece unknown_name, StringPiece message)
 
void InvalidValue (StringPiece type_name, StringPiece value)
 
bool IsRepeated (const google::protobuf::Field &field)
 
const google::protobuf::FieldLookup (StringPiece name)
 
const google::protobuf::TypeLookupType (const google::protobuf::Field *field)
 
void MissingField (StringPiece missing_name)
 
 ProtoWriter (const TypeInfo *typeinfo, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener)
 
ProtoWriterRenderPrimitiveField (const google::protobuf::Field &field, const google::protobuf::Type &type, const DataPiece &value)
 
ProtoWriterStartListField (const google::protobuf::Field &field, const google::protobuf::Type &type)
 
ProtoWriterStartObjectField (const google::protobuf::Field &field, const google::protobuf::Type &type)
 
bool ValidOneof (const google::protobuf::Field &field, StringPiece unnormalized_name)
 
void WriteRootMessage ()
 
void WriteTag (const google::protobuf::Field &field)
 
- Protected Member Functions inherited from google::protobuf::util::converter::StructuredObjectWriter
 StructuredObjectWriter ()
 
- Protected Member Functions inherited from google::protobuf::util::converter::ObjectWriter
 ObjectWriter ()
 

Static Protected Member Functions

static void DeleteRendererMap ()
 
static TypeRendererFindTypeRenderer (const std::string &type_url)
 
static void InitRendererMap ()
 
static util::Status RenderDuration (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderFieldMask (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderStructValue (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderTimestamp (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderWrapperType (ProtoStreamObjectWriter *ow, const DataPiece &value)
 

Private Member Functions

 GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS (ProtoStreamObjectWriter)
 

Private Attributes

std::unique_ptr< Itemcurrent_
 
const google::protobuf::Typemaster_type_
 
const ProtoStreamObjectWriter::Options options_
 

Static Private Attributes

static std::unordered_map< std::string, TypeRenderer > * renderers_ = NULL
 

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 67 of file protostream_objectwriter.h.

Member Typedef Documentation

◆ TypeRenderer

typedef util::Status(* google::protobuf::util::converter::ProtoStreamObjectWriter::TypeRenderer) (ProtoStreamObjectWriter *, const DataPiece &)
protected

Definition at line 136 of file protostream_objectwriter.h.

Constructor & Destructor Documentation

◆ ProtoStreamObjectWriter() [1/3]

google::protobuf::util::converter::ProtoStreamObjectWriter::ProtoStreamObjectWriter ( TypeResolver type_resolver,
const google::protobuf::Type type,
strings::ByteSink *  output,
ErrorListener listener,
const ProtoStreamObjectWriter::Options options = ProtoStreamObjectWriter::Options::Defaults() 
)

Definition at line 66 of file protostream_objectwriter.cc.

◆ ~ProtoStreamObjectWriter()

google::protobuf::util::converter::ProtoStreamObjectWriter::~ProtoStreamObjectWriter ( )
override

Definition at line 101 of file protostream_objectwriter.cc.

◆ ProtoStreamObjectWriter() [2/3]

google::protobuf::util::converter::ProtoStreamObjectWriter::ProtoStreamObjectWriter ( const TypeInfo typeinfo,
const google::protobuf::Type type,
strings::ByteSink *  output,
ErrorListener listener 
)
protected

Definition at line 93 of file protostream_objectwriter.cc.

◆ ProtoStreamObjectWriter() [3/3]

google::protobuf::util::converter::ProtoStreamObjectWriter::ProtoStreamObjectWriter ( const TypeInfo typeinfo,
const google::protobuf::Type type,
strings::ByteSink *  output,
ErrorListener listener,
const ProtoStreamObjectWriter::Options options 
)
protected

Definition at line 80 of file protostream_objectwriter.cc.

Member Function Documentation

◆ DeleteRendererMap()

void google::protobuf::util::converter::ProtoStreamObjectWriter::DeleteRendererMap ( )
staticprotected

Definition at line 1227 of file protostream_objectwriter.cc.

◆ EndList()

ProtoStreamObjectWriter * google::protobuf::util::converter::ProtoStreamObjectWriter::EndList ( )
overridevirtual

Reimplemented from google::protobuf::util::converter::ProtoWriter.

Definition at line 861 of file protostream_objectwriter.cc.

◆ EndObject()

ProtoStreamObjectWriter * google::protobuf::util::converter::ProtoStreamObjectWriter::EndObject ( )
overridevirtual

Reimplemented from google::protobuf::util::converter::ProtoWriter.

Definition at line 630 of file protostream_objectwriter.cc.

◆ FindTypeRenderer()

ProtoStreamObjectWriter::TypeRenderer * google::protobuf::util::converter::ProtoStreamObjectWriter::FindTypeRenderer ( const std::string type_url)
staticprotected

Definition at line 1233 of file protostream_objectwriter.cc.

◆ GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS()

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

◆ InitRendererMap()

void google::protobuf::util::converter::ProtoStreamObjectWriter::InitRendererMap ( )
staticprotected

Definition at line 1177 of file protostream_objectwriter.cc.

◆ IsAny()

bool google::protobuf::util::converter::ProtoStreamObjectWriter::IsAny ( const google::protobuf::Field field)
inlineprotected

Definition at line 1293 of file protostream_objectwriter.cc.

◆ IsMap()

bool google::protobuf::util::converter::ProtoStreamObjectWriter::IsMap ( const google::protobuf::Field field)
inlineprotected

Definition at line 1280 of file protostream_objectwriter.cc.

◆ IsStruct()

bool google::protobuf::util::converter::ProtoStreamObjectWriter::IsStruct ( const google::protobuf::Field field)
inlineprotected

Definition at line 1297 of file protostream_objectwriter.cc.

◆ IsStructListValue()

bool google::protobuf::util::converter::ProtoStreamObjectWriter::IsStructListValue ( const google::protobuf::Field field)
inlineprotected

Definition at line 1306 of file protostream_objectwriter.cc.

◆ IsStructValue()

bool google::protobuf::util::converter::ProtoStreamObjectWriter::IsStructValue ( const google::protobuf::Field field)
inlineprotected

Definition at line 1301 of file protostream_objectwriter.cc.

◆ Pop()

void google::protobuf::util::converter::ProtoStreamObjectWriter::Pop ( )
protected

Definition at line 1264 of file protostream_objectwriter.cc.

◆ PopOneElement()

void google::protobuf::util::converter::ProtoStreamObjectWriter::PopOneElement ( )
protected

Definition at line 1275 of file protostream_objectwriter.cc.

◆ Push()

void google::protobuf::util::converter::ProtoStreamObjectWriter::Push ( StringPiece  name,
Item::ItemType  item_type,
bool  is_placeholder,
bool  is_list 
)
protected

Definition at line 1253 of file protostream_objectwriter.cc.

◆ RenderDataPiece()

ProtoStreamObjectWriter * google::protobuf::util::converter::ProtoStreamObjectWriter::RenderDataPiece ( StringPiece  name,
const DataPiece data 
)
overridevirtual

Reimplemented from google::protobuf::util::converter::ProtoWriter.

Definition at line 1053 of file protostream_objectwriter.cc.

◆ RenderDuration()

Status google::protobuf::util::converter::ProtoStreamObjectWriter::RenderDuration ( ProtoStreamObjectWriter ow,
const DataPiece value 
)
staticprotected

Definition at line 995 of file protostream_objectwriter.cc.

◆ RenderFieldMask()

Status google::protobuf::util::converter::ProtoStreamObjectWriter::RenderFieldMask ( ProtoStreamObjectWriter ow,
const DataPiece value 
)
staticprotected

Definition at line 979 of file protostream_objectwriter.cc.

◆ RenderStructValue()

Status google::protobuf::util::converter::ProtoStreamObjectWriter::RenderStructValue ( ProtoStreamObjectWriter ow,
const DataPiece value 
)
staticprotected

Definition at line 878 of file protostream_objectwriter.cc.

◆ RenderTimestamp()

Status google::protobuf::util::converter::ProtoStreamObjectWriter::RenderTimestamp ( ProtoStreamObjectWriter ow,
const DataPiece value 
)
staticprotected

Definition at line 948 of file protostream_objectwriter.cc.

◆ RenderWrapperType()

Status google::protobuf::util::converter::ProtoStreamObjectWriter::RenderWrapperType ( ProtoStreamObjectWriter ow,
const DataPiece value 
)
staticprotected

Definition at line 1046 of file protostream_objectwriter.cc.

◆ StartList()

ProtoStreamObjectWriter * google::protobuf::util::converter::ProtoStreamObjectWriter::StartList ( StringPiece  name)
overridevirtual

Reimplemented from google::protobuf::util::converter::ProtoWriter.

Definition at line 647 of file protostream_objectwriter.cc.

◆ StartObject()

ProtoStreamObjectWriter * google::protobuf::util::converter::ProtoStreamObjectWriter::StartObject ( StringPiece  name)
overridevirtual

Reimplemented from google::protobuf::util::converter::ProtoWriter.

Definition at line 485 of file protostream_objectwriter.cc.

◆ ValidMapKey()

bool google::protobuf::util::converter::ProtoStreamObjectWriter::ValidMapKey ( StringPiece  unnormalized_name)
protected

Definition at line 1239 of file protostream_objectwriter.cc.

Member Data Documentation

◆ current_

std::unique_ptr<Item> google::protobuf::util::converter::ProtoStreamObjectWriter::current_
private

Definition at line 404 of file protostream_objectwriter.h.

◆ master_type_

const google::protobuf::Type& google::protobuf::util::converter::ProtoStreamObjectWriter::master_type_
private

Definition at line 401 of file protostream_objectwriter.h.

◆ options_

const ProtoStreamObjectWriter::Options google::protobuf::util::converter::ProtoStreamObjectWriter::options_
private

Definition at line 407 of file protostream_objectwriter.h.

◆ renderers_

std::unordered_map< std::string, ProtoStreamObjectWriter::TypeRenderer > * google::protobuf::util::converter::ProtoStreamObjectWriter::renderers_ = NULL
staticprivate

Definition at line 397 of file protostream_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