webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | List of all members
google::protobuf::util::converter::ProtoStreamObjectWriter Class Reference

#include <protostream_objectwriter.h>

Inheritance diagram for google::protobuf::util::converter::ProtoStreamObjectWriter:
google::protobuf::util::converter::ProtoWriter google::protobuf::util::converter::StructuredObjectWriter google::protobuf::util::converter::ObjectWriter

Classes

class  AnyWriter
 
class  Item
 
struct  Options
 

Public Member Functions

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

Protected Types

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

Protected Member Functions

 ProtoStreamObjectWriter (const TypeInfo *typeinfo, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener)
 
bool IsMap (const google::protobuf::Field &field)
 
bool IsAny (const google::protobuf::Field &field)
 
bool IsStruct (const google::protobuf::Field &field)
 
bool IsStructValue (const google::protobuf::Field &field)
 
bool IsStructListValue (const google::protobuf::Field &field)
 
bool ValidMapKey (StringPiece unnormalized_name)
 
void Push (StringPiece name, Item::ItemType item_type, bool is_placeholder, bool is_list)
 
void Pop ()
 
void PopOneElement ()
 
- Protected Member Functions inherited from google::protobuf::util::converter::ProtoWriter
 ProtoWriter (const TypeInfo *typeinfo, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener)
 
virtual ProtoElementelement ()
 
void InvalidName (StringPiece unknown_name, StringPiece message)
 
void InvalidValue (StringPiece type_name, StringPiece value)
 
void MissingField (StringPiece missing_name)
 
const google::protobuf::FieldBeginNamed (StringPiece name, bool is_list)
 
const google::protobuf::FieldLookup (StringPiece name)
 
const google::protobuf::TypeLookupType (const google::protobuf::Field *field)
 
void WriteRootMessage ()
 
void WriteTag (const google::protobuf::Field &field)
 
bool ValidOneof (const google::protobuf::Field &field, StringPiece unnormalized_name)
 
bool IsRepeated (const google::protobuf::Field &field)
 
ProtoWriterStartObjectField (const google::protobuf::Field &field, const google::protobuf::Type &type)
 
ProtoWriterStartListField (const google::protobuf::Field &field, const google::protobuf::Type &type)
 
ProtoWriterRenderPrimitiveField (const google::protobuf::Field &field, const google::protobuf::Type &type, const DataPiece &value)
 
- 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 util::Status RenderStructValue (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderTimestamp (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderFieldMask (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderDuration (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static util::Status RenderWrapperType (ProtoStreamObjectWriter *ow, const DataPiece &value)
 
static void InitRendererMap ()
 
static void DeleteRendererMap ()
 
static TypeRendererFindTypeRenderer (const string &type_url)
 

Additional Inherited Members

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

Member Typedef Documentation

◆ TypeRenderer

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

Constructor & Destructor Documentation

◆ ProtoStreamObjectWriter() [1/2]

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() 
)

◆ ~ProtoStreamObjectWriter()

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

◆ ProtoStreamObjectWriter() [2/2]

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

Member Function Documentation

◆ DeleteRendererMap()

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

◆ EndList()

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

◆ EndObject()

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

◆ FindTypeRenderer()

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

◆ InitRendererMap()

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

◆ IsAny()

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

◆ IsMap()

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

◆ IsStruct()

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

◆ IsStructListValue()

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

◆ IsStructValue()

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

◆ Pop()

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

◆ PopOneElement()

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

◆ Push()

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

◆ RenderDataPiece()

ProtoStreamObjectWriter * google::protobuf::util::converter::ProtoStreamObjectWriter::RenderDataPiece ( StringPiece  name,
const DataPiece value 
)
virtual

◆ RenderDuration()

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

◆ RenderFieldMask()

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

◆ RenderStructValue()

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

◆ RenderTimestamp()

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

◆ RenderWrapperType()

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

◆ StartList()

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

◆ StartObject()

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

◆ ValidMapKey()

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

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