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

#include <printer.h>

Public Member Functions

 Printer (ZeroCopyOutputStream *output, char variable_delimiter)
 
 ~Printer ()
 
void Print (const map< string, string > &variables, const char *text)
 
void Print (const char *text)
 
void Print (const char *text, const char *variable, const string &value)
 
void Print (const char *text, const char *variable1, const string &value1, const char *variable2, const string &value2)
 
void Print (const char *text, const char *variable1, const string &value1, const char *variable2, const string &value2, const char *variable3, const string &value3)
 
void Indent ()
 
void Outdent ()
 
void PrintRaw (const string &data)
 
void PrintRaw (const char *data)
 
void WriteRaw (const char *data, int size)
 
bool failed () const
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Printer)
 

Private Attributes

const char variable_delimiter_
 
ZeroCopyOutputStream *const output_
 
char * buffer_
 
int buffer_size_
 
string indent_
 
bool at_start_of_line_
 
bool failed_
 

Constructor & Destructor Documentation

google::protobuf::io::Printer::Printer ( ZeroCopyOutputStream output,
char  variable_delimiter 
)
google::protobuf::io::Printer::~Printer ( )

Member Function Documentation

bool google::protobuf::io::Printer::failed ( ) const
inline
116 { return failed_; }
bool failed_
Definition: printer.h:127
google::protobuf::io::Printer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Printer  )
private
void google::protobuf::io::Printer::Indent ( )
void google::protobuf::io::Printer::Outdent ( )
void google::protobuf::io::Printer::Print ( const map< string, string > &  variables,
const char *  text 
)
void google::protobuf::io::Printer::Print ( const char *  text)
void google::protobuf::io::Printer::Print ( const char *  text,
const char *  variable,
const string &  value 
)
void google::protobuf::io::Printer::Print ( const char *  text,
const char *  variable1,
const string &  value1,
const char *  variable2,
const string &  value2 
)
void google::protobuf::io::Printer::Print ( const char *  text,
const char *  variable1,
const string &  value1,
const char *  variable2,
const string &  value2,
const char *  variable3,
const string &  value3 
)
void google::protobuf::io::Printer::PrintRaw ( const string &  data)
void google::protobuf::io::Printer::PrintRaw ( const char *  data)
void google::protobuf::io::Printer::WriteRaw ( const char *  data,
int  size 
)

Member Data Documentation

bool google::protobuf::io::Printer::at_start_of_line_
private
char* google::protobuf::io::Printer::buffer_
private
int google::protobuf::io::Printer::buffer_size_
private
bool google::protobuf::io::Printer::failed_
private
string google::protobuf::io::Printer::indent_
private
ZeroCopyOutputStream* const google::protobuf::io::Printer::output_
private
const char google::protobuf::io::Printer::variable_delimiter_
private

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