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

#include <proto_writer.h>

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

Classes

class  ProtoElement
 
struct  SizeInfo
 

Public Member Functions

 ProtoWriter (TypeResolver *type_resolver, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener)
 
virtual ~ProtoWriter ()
 
virtual ProtoWriter * StartObject (StringPiece name)
 
virtual ProtoWriter * EndObject ()
 
virtual ProtoWriter * StartList (StringPiece name)
 
virtual ProtoWriter * EndList ()
 
virtual ProtoWriter * RenderBool (StringPiece name, bool value)
 
virtual ProtoWriter * RenderInt32 (StringPiece name, int32 value)
 
virtual ProtoWriter * RenderUint32 (StringPiece name, uint32 value)
 
virtual ProtoWriter * RenderInt64 (StringPiece name, int64 value)
 
virtual ProtoWriter * RenderUint64 (StringPiece name, uint64 value)
 
virtual ProtoWriter * RenderDouble (StringPiece name, double value)
 
virtual ProtoWriter * RenderFloat (StringPiece name, float value)
 
virtual ProtoWriter * RenderString (StringPiece name, StringPiece value)
 
virtual ProtoWriter * RenderBytes (StringPiece name, StringPiece value)
 
virtual ProtoWriter * RenderNull (StringPiece name)
 
virtual ProtoWriter * RenderDataPiece (StringPiece name, const DataPiece &value)
 
const LocationTrackerInterface & location ()
 
bool done ()
 
google::protobuf::io::CodedOutputStream * stream ()
 
void IncrementInvalidDepth ()
 
void DecrementInvalidDepth ()
 
int invalid_depth ()
 
ErrorListener * listener ()
 
const TypeInfo * typeinfo ()
 
- 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 Member Functions

 ProtoWriter (const TypeInfo *typeinfo, const google::protobuf::Type &type, strings::ByteSink *output, ErrorListener *listener)
 
virtual ProtoElement * element ()
 
void InvalidName (StringPiece unknown_name, StringPiece message)
 
void InvalidValue (StringPiece type_name, StringPiece value)
 
void MissingField (StringPiece missing_name)
 
const google::protobuf::Field * BeginNamed (StringPiece name, bool is_list)
 
const google::protobuf::Field * Lookup (StringPiece name)
 
const google::protobuf::Type * LookupType (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)
 
ProtoWriter * StartObjectField (const google::protobuf::Field &field, const google::protobuf::Type &type)
 
ProtoWriter * StartListField (const google::protobuf::Field &field, const google::protobuf::Type &type)
 
ProtoWriter * RenderPrimitiveField (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 ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ProtoWriter() [1/2]

google::protobuf::util::converter::ProtoWriter::ProtoWriter ( TypeResolver *  type_resolver,
const google::protobuf::Type &  type,
strings::ByteSink *  output,
ErrorListener *  listener 
)

◆ ~ProtoWriter()

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

◆ ProtoWriter() [2/2]

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

Member Function Documentation

◆ BeginNamed()

const google::protobuf::Field * google::protobuf::util::converter::ProtoWriter::BeginNamed ( StringPiece  name,
bool  is_list 
)
protected

◆ DecrementInvalidDepth()

void google::protobuf::util::converter::ProtoWriter::DecrementInvalidDepth ( )
inline

◆ done()

bool google::protobuf::util::converter::ProtoWriter::done ( )
inlinevirtual

◆ element()

virtual ProtoElement* google::protobuf::util::converter::ProtoWriter::element ( )
inlineprotectedvirtual

◆ EndList()

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

◆ EndObject()

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

◆ IncrementInvalidDepth()

void google::protobuf::util::converter::ProtoWriter::IncrementInvalidDepth ( )
inline

◆ invalid_depth()

int google::protobuf::util::converter::ProtoWriter::invalid_depth ( )
inline

◆ InvalidName()

void google::protobuf::util::converter::ProtoWriter::InvalidName ( StringPiece  unknown_name,
StringPiece  message 
)
protected

◆ InvalidValue()

void google::protobuf::util::converter::ProtoWriter::InvalidValue ( StringPiece  type_name,
StringPiece  value 
)
protected

◆ IsRepeated()

bool google::protobuf::util::converter::ProtoWriter::IsRepeated ( const google::protobuf::Field &  field)
protected

◆ listener()

ErrorListener* google::protobuf::util::converter::ProtoWriter::listener ( )
inline

◆ location()

const LocationTrackerInterface& google::protobuf::util::converter::ProtoWriter::location ( )
inline

◆ Lookup()

const google::protobuf::Field * google::protobuf::util::converter::ProtoWriter::Lookup ( StringPiece  name)
protected

◆ LookupType()

const google::protobuf::Type * google::protobuf::util::converter::ProtoWriter::LookupType ( const google::protobuf::Field *  field)
protected

◆ MissingField()

void google::protobuf::util::converter::ProtoWriter::MissingField ( StringPiece  missing_name)
protected

◆ RenderBool()

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

◆ RenderBytes()

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

◆ RenderDataPiece()

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

◆ RenderDouble()

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

◆ RenderFloat()

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

◆ RenderInt32()

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

◆ RenderInt64()

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

◆ RenderNull()

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

◆ RenderPrimitiveField()

ProtoWriter * google::protobuf::util::converter::ProtoWriter::RenderPrimitiveField ( const google::protobuf::Field &  field,
const google::protobuf::Type &  type,
const DataPiece &  value 
)
protected

◆ RenderString()

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

◆ RenderUint32()

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

◆ RenderUint64()

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

◆ StartList()

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

◆ StartListField()

ProtoWriter * google::protobuf::util::converter::ProtoWriter::StartListField ( const google::protobuf::Field &  field,
const google::protobuf::Type &  type 
)
protected

◆ StartObject()

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

◆ StartObjectField()

ProtoWriter * google::protobuf::util::converter::ProtoWriter::StartObjectField ( const google::protobuf::Field &  field,
const google::protobuf::Type &  type 
)
protected

◆ stream()

google::protobuf::io::CodedOutputStream* google::protobuf::util::converter::ProtoWriter::stream ( )
inline

◆ typeinfo()

const TypeInfo* google::protobuf::util::converter::ProtoWriter::typeinfo ( )
inline

◆ ValidOneof()

bool google::protobuf::util::converter::ProtoWriter::ValidOneof ( const google::protobuf::Field &  field,
StringPiece  unnormalized_name 
)
protected

◆ WriteRootMessage()

void google::protobuf::util::converter::ProtoWriter::WriteRootMessage ( )
protected

◆ WriteTag()

void google::protobuf::util::converter::ProtoWriter::WriteTag ( const google::protobuf::Field &  field)
protected

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