TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::TextFormat::Printer Class Reference

#include <text_format.h>

Public Member Functions

 Printer ()
 
 ~Printer ()
 
bool Print (const Message &message, io::ZeroCopyOutputStream *output) const
 
bool PrintUnknownFields (const UnknownFieldSet &unknown_fields, io::ZeroCopyOutputStream *output) const
 
bool PrintToString (const Message &message, string *output) const
 
bool PrintUnknownFieldsToString (const UnknownFieldSet &unknown_fields, string *output) const
 
void PrintFieldValueToString (const Message &message, const FieldDescriptor *field, int index, string *output) const
 
void SetInitialIndentLevel (int indent_level)
 
void SetSingleLineMode (bool single_line_mode)
 
bool IsInSingleLineMode ()
 
void SetUseFieldNumber (bool use_field_number)
 
void SetUseShortRepeatedPrimitives (bool use_short_repeated_primitives)
 
void SetUseUtf8StringEscaping (bool as_utf8)
 
void SetDefaultFieldValuePrinter (const FieldValuePrinter *printer)
 
void SetHideUnknownFields (bool hide)
 
void SetPrintMessageFieldsInIndexOrder (bool print_message_fields_in_index_order)
 
bool RegisterFieldValuePrinter (const FieldDescriptor *field, const FieldValuePrinter *printer)
 

Private Types

typedef map< const
FieldDescriptor *, const
FieldValuePrinter * > 
CustomPrinterMap
 

Private Member Functions

void Print (const Message &message, TextGenerator &generator) const
 
void PrintField (const Message &message, const Reflection *reflection, const FieldDescriptor *field, TextGenerator &generator) const
 
void PrintShortRepeatedField (const Message &message, const Reflection *reflection, const FieldDescriptor *field, TextGenerator &generator) const
 
void PrintFieldName (const Message &message, const Reflection *reflection, const FieldDescriptor *field, TextGenerator &generator) const
 
void PrintFieldValue (const Message &message, const Reflection *reflection, const FieldDescriptor *field, int index, TextGenerator &generator) const
 
void PrintUnknownFields (const UnknownFieldSet &unknown_fields, TextGenerator &generator) const
 

Private Attributes

int initial_indent_level_
 
bool single_line_mode_
 
bool use_field_number_
 
bool use_short_repeated_primitives_
 
bool hide_unknown_fields_
 
bool print_message_fields_in_index_order_
 
scoped_ptr< const
FieldValuePrinter
default_field_value_printer_
 
CustomPrinterMap custom_printers_
 

Member Typedef Documentation

Constructor & Destructor Documentation

google::protobuf::TextFormat::Printer::Printer ( )
google::protobuf::TextFormat::Printer::~Printer ( )

Member Function Documentation

bool google::protobuf::TextFormat::Printer::IsInSingleLineMode ( )
inline
160  {
161  return single_line_mode_;
162  }
bool single_line_mode_
Definition: text_format.h:261
bool google::protobuf::TextFormat::Printer::Print ( const Message message,
io::ZeroCopyOutputStream output 
) const
void google::protobuf::TextFormat::Printer::Print ( const Message message,
TextGenerator &  generator 
) const
private
void google::protobuf::TextFormat::Printer::PrintField ( const Message message,
const Reflection reflection,
const FieldDescriptor field,
TextGenerator &  generator 
) const
private
void google::protobuf::TextFormat::Printer::PrintFieldName ( const Message message,
const Reflection reflection,
const FieldDescriptor field,
TextGenerator &  generator 
) const
private
void google::protobuf::TextFormat::Printer::PrintFieldValue ( const Message message,
const Reflection reflection,
const FieldDescriptor field,
int  index,
TextGenerator &  generator 
) const
private
void google::protobuf::TextFormat::Printer::PrintFieldValueToString ( const Message message,
const FieldDescriptor field,
int  index,
string *  output 
) const
void google::protobuf::TextFormat::Printer::PrintShortRepeatedField ( const Message message,
const Reflection reflection,
const FieldDescriptor field,
TextGenerator &  generator 
) const
private
bool google::protobuf::TextFormat::Printer::PrintToString ( const Message message,
string *  output 
) const
bool google::protobuf::TextFormat::Printer::PrintUnknownFields ( const UnknownFieldSet unknown_fields,
io::ZeroCopyOutputStream output 
) const
void google::protobuf::TextFormat::Printer::PrintUnknownFields ( const UnknownFieldSet unknown_fields,
TextGenerator &  generator 
) const
private
bool google::protobuf::TextFormat::Printer::PrintUnknownFieldsToString ( const UnknownFieldSet unknown_fields,
string *  output 
) const
bool google::protobuf::TextFormat::Printer::RegisterFieldValuePrinter ( const FieldDescriptor field,
const FieldValuePrinter printer 
)
void google::protobuf::TextFormat::Printer::SetDefaultFieldValuePrinter ( const FieldValuePrinter printer)
void google::protobuf::TextFormat::Printer::SetHideUnknownFields ( bool  hide)
inline
195  {
196  hide_unknown_fields_ = hide;
197  }
bool hide_unknown_fields_
Definition: text_format.h:267
void google::protobuf::TextFormat::Printer::SetInitialIndentLevel ( int  indent_level)
inline
150  {
151  initial_indent_level_ = indent_level;
152  }
int initial_indent_level_
Definition: text_format.h:259
void google::protobuf::TextFormat::Printer::SetPrintMessageFieldsInIndexOrder ( bool  print_message_fields_in_index_order)
inline
203  {
205  print_message_fields_in_index_order;
206  }
bool print_message_fields_in_index_order_
Definition: text_format.h:269
void google::protobuf::TextFormat::Printer::SetSingleLineMode ( bool  single_line_mode)
inline
156  {
157  single_line_mode_ = single_line_mode;
158  }
bool single_line_mode_
Definition: text_format.h:261
void google::protobuf::TextFormat::Printer::SetUseFieldNumber ( bool  use_field_number)
inline
165  {
166  use_field_number_ = use_field_number;
167  }
bool use_field_number_
Definition: text_format.h:263
void google::protobuf::TextFormat::Printer::SetUseShortRepeatedPrimitives ( bool  use_short_repeated_primitives)
inline
174  {
175  use_short_repeated_primitives_ = use_short_repeated_primitives;
176  }
bool use_short_repeated_primitives_
Definition: text_format.h:265
void google::protobuf::TextFormat::Printer::SetUseUtf8StringEscaping ( bool  as_utf8)

Member Data Documentation

CustomPrinterMap google::protobuf::TextFormat::Printer::custom_printers_
private
scoped_ptr<const FieldValuePrinter> google::protobuf::TextFormat::Printer::default_field_value_printer_
private
bool google::protobuf::TextFormat::Printer::hide_unknown_fields_
private
int google::protobuf::TextFormat::Printer::initial_indent_level_
private
bool google::protobuf::TextFormat::Printer::print_message_fields_in_index_order_
private
bool google::protobuf::TextFormat::Printer::single_line_mode_
private
bool google::protobuf::TextFormat::Printer::use_field_number_
private
bool google::protobuf::TextFormat::Printer::use_short_repeated_primitives_
private

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