Classes | Namespaces | Macros | Functions
text_format.cc File Reference
#include <google/protobuf/text_format.h>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <climits>
#include <limits>
#include <vector>
#include <google/protobuf/stubs/stringprintf.h>
#include <google/protobuf/any.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/io/strtod.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/map_field.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/stubs/stl_util.h>
#include <google/protobuf/port_def.inc>
Include dependency graph for text_format.cc:

Go to the source code of this file.

Classes

class  google::protobuf::MapEntryMessageComparator
 
class  google::protobuf.internal::MapFieldPrinterHelper
 
class  google::protobuf::TextFormat::Parser::ParserImpl::ParserErrorCollector
 
class  google::protobuf::TextFormat::Parser::ParserImpl
 
class  google::protobuf::io::Printer::TextGenerator
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define DO(STATEMENT)
 
#define FORWARD_IMPL(fn, ...)
 
#define OUTPUT_FIELD(CPPTYPE, METHOD)
 
#define SET_FIELD(CPPTYPE, VALUE)
 

Functions

void google::protobuf::CheckFieldIndex (const FieldDescriptor *field, int index)
 

Macro Definition Documentation

◆ DO

#define DO (   STATEMENT)
Value:
if (STATEMENT) { \
} else { \
return false; \
}

Definition at line 237 of file text_format.cc.

◆ FORWARD_IMPL

#define FORWARD_IMPL (   fn,
  ... 
)
Value:
StringBaseTextGenerator generator; \
delegate_.fn(__VA_ARGS__, &generator); \
return generator.Get()

Definition at line 1548 of file text_format.cc.

◆ OUTPUT_FIELD

#define OUTPUT_FIELD (   CPPTYPE,
  METHOD 
)
Value:
case FieldDescriptor::CPPTYPE_##CPPTYPE: \
printer->Print##METHOD( \
field->is_repeated() \
? reflection->GetRepeated##METHOD(message, field, index) \
: reflection->Get##METHOD(message, field), \
generator); \
break

◆ SET_FIELD

#define SET_FIELD (   CPPTYPE,
  VALUE 
)
Value:
if (field->is_repeated()) { \
reflection->Add##CPPTYPE(message, field, VALUE); \
} else { \
reflection->Set##CPPTYPE(message, field, VALUE); \
}

Variable Documentation

◆ delegate_

std::unique_ptr<const TextFormat::FieldValuePrinter> delegate_
private

Definition at line 1776 of file text_format.cc.

◆ output_

std::string output_
private

Definition at line 1531 of file text_format.cc.

field
const FieldDescriptor * field
Definition: parser_unittest.cc:2694
index
GLuint index
Definition: glcorearb.h:3055
message
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glcorearb.h:2695


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04