Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::TextFormat::Parser::ParserImpl Class Reference

Classes

class  ParserErrorCollector
 

Public Types

enum  SingularOverwritePolicy { ALLOW_SINGULAR_OVERWRITES = 0, FORBID_SINGULAR_OVERWRITES = 1 }
 

Public Member Functions

bool Parse (Message *output)
 
bool ParseField (const FieldDescriptor *field, Message *output)
 
 ParserImpl (const Descriptor *root_message_type, io::ZeroCopyInputStream *input_stream, io::ErrorCollector *error_collector, const TextFormat::Finder *finder, ParseInfoTree *parse_info_tree, SingularOverwritePolicy singular_overwrite_policy, bool allow_case_insensitive_field, bool allow_unknown_field, bool allow_unknown_extension, bool allow_unknown_enum, bool allow_field_number, bool allow_relaxed_whitespace, bool allow_partial, int recursion_limit)
 
void ReportError (int line, int col, const std::string &message)
 
void ReportWarning (int line, int col, const std::string &message)
 
 ~ParserImpl ()
 

Private Member Functions

bool Consume (const std::string &value)
 
bool ConsumeAnyTypeUrl (std::string *full_type_name, std::string *prefix)
 
bool ConsumeAnyValue (const Descriptor *value_descriptor, std::string *serialized_value)
 
bool ConsumeDouble (double *value)
 
bool ConsumeField (Message *message)
 
bool ConsumeFieldMessage (Message *message, const Reflection *reflection, const FieldDescriptor *field)
 
bool ConsumeFieldValue (Message *message, const Reflection *reflection, const FieldDescriptor *field)
 
bool ConsumeFullTypeName (std::string *name)
 
bool ConsumeIdentifier (std::string *identifier)
 
bool ConsumeMessage (Message *message, const std::string delimiter)
 
bool ConsumeMessageDelimiter (std::string *delimiter)
 
bool ConsumeSignedInteger (int64 *value, uint64 max_value)
 
bool ConsumeString (std::string *text)
 
bool ConsumeTypeUrlOrFullTypeName ()
 
bool ConsumeUnsignedDecimalAsDouble (double *value, uint64 max_value)
 
bool ConsumeUnsignedInteger (uint64 *value, uint64 max_value)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (ParserImpl)
 
bool LookingAt (const std::string &text)
 
bool LookingAtType (io::Tokenizer::TokenType token_type)
 
void ReportError (const std::string &message)
 
void ReportWarning (const std::string &message)
 
bool SkipField ()
 
bool SkipFieldMessage ()
 
bool SkipFieldValue ()
 
bool TryConsume (const std::string &value)
 

Private Attributes

const bool allow_case_insensitive_field_
 
const bool allow_field_number_
 
const bool allow_partial_
 
const bool allow_unknown_enum_
 
const bool allow_unknown_extension_
 
const bool allow_unknown_field_
 
io::ErrorCollectorerror_collector_
 
const TextFormat::Finderfinder_
 
bool had_errors_
 
ParseInfoTreeparse_info_tree_
 
int recursion_limit_
 
const Descriptorroot_message_type_
 
SingularOverwritePolicy singular_overwrite_policy_
 
io::Tokenizer tokenizer_
 
ParserErrorCollector tokenizer_error_collector_
 

Detailed Description

Definition at line 243 of file text_format.cc.

Member Enumeration Documentation

◆ SingularOverwritePolicy

Enumerator
ALLOW_SINGULAR_OVERWRITES 
FORBID_SINGULAR_OVERWRITES 

Definition at line 249 of file text_format.cc.

Constructor & Destructor Documentation

◆ ParserImpl()

google::protobuf::TextFormat::Parser::ParserImpl::ParserImpl ( const Descriptor root_message_type,
io::ZeroCopyInputStream input_stream,
io::ErrorCollector error_collector,
const TextFormat::Finder finder,
ParseInfoTree parse_info_tree,
SingularOverwritePolicy  singular_overwrite_policy,
bool  allow_case_insensitive_field,
bool  allow_unknown_field,
bool  allow_unknown_extension,
bool  allow_unknown_enum,
bool  allow_field_number,
bool  allow_relaxed_whitespace,
bool  allow_partial,
int  recursion_limit 
)
inline

Definition at line 254 of file text_format.cc.

◆ ~ParserImpl()

google::protobuf::TextFormat::Parser::ParserImpl::~ParserImpl ( )
inline

Definition at line 293 of file text_format.cc.

Member Function Documentation

◆ Consume()

bool google::protobuf::TextFormat::Parser::ParserImpl::Consume ( const std::string value)
inlineprivate

Definition at line 1150 of file text_format.cc.

◆ ConsumeAnyTypeUrl()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeAnyTypeUrl ( std::string full_type_name,
std::string prefix 
)
inlineprivate

Definition at line 1103 of file text_format.cc.

◆ ConsumeAnyValue()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeAnyValue ( const Descriptor value_descriptor,
std::string serialized_value 
)
inlineprivate

Definition at line 1121 of file text_format.cc.

◆ ConsumeDouble()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeDouble ( double *  value)
inlineprivate

Definition at line 1057 of file text_format.cc.

◆ ConsumeField()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeField ( Message message)
inlineprivate

Definition at line 395 of file text_format.cc.

◆ ConsumeFieldMessage()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeFieldMessage ( Message message,
const Reflection reflection,
const FieldDescriptor field 
)
inlineprivate

Definition at line 651 of file text_format.cc.

◆ ConsumeFieldValue()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeFieldValue ( Message message,
const Reflection reflection,
const FieldDescriptor field 
)
inlineprivate

Definition at line 695 of file text_format.cc.

◆ ConsumeFullTypeName()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeFullTypeName ( std::string name)
inlineprivate

Definition at line 938 of file text_format.cc.

◆ ConsumeIdentifier()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeIdentifier ( std::string identifier)
inlineprivate

Definition at line 916 of file text_format.cc.

◆ ConsumeMessage()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeMessage ( Message message,
const std::string  delimiter 
)
inlineprivate

Definition at line 371 of file text_format.cc.

◆ ConsumeMessageDelimiter()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeMessageDelimiter ( std::string delimiter)
inlineprivate

Definition at line 382 of file text_format.cc.

◆ ConsumeSignedInteger()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeSignedInteger ( int64 value,
uint64  max_value 
)
inlineprivate

Definition at line 999 of file text_format.cc.

◆ ConsumeString()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeString ( std::string text)
inlineprivate

Definition at line 960 of file text_format.cc.

◆ ConsumeTypeUrlOrFullTypeName()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeTypeUrlOrFullTypeName ( )
inlineprivate

Definition at line 949 of file text_format.cc.

◆ ConsumeUnsignedDecimalAsDouble()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeUnsignedDecimalAsDouble ( double *  value,
uint64  max_value 
)
inlineprivate

Definition at line 1028 of file text_format.cc.

◆ ConsumeUnsignedInteger()

bool google::protobuf::TextFormat::Parser::ParserImpl::ConsumeUnsignedInteger ( uint64 value,
uint64  max_value 
)
inlineprivate

Definition at line 978 of file text_format.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::TextFormat::Parser::ParserImpl::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( ParserImpl  )
private

◆ LookingAt()

bool google::protobuf::TextFormat::Parser::ParserImpl::LookingAt ( const std::string text)
inlineprivate

Definition at line 905 of file text_format.cc.

◆ LookingAtType()

bool google::protobuf::TextFormat::Parser::ParserImpl::LookingAtType ( io::Tokenizer::TokenType  token_type)
inlineprivate

Definition at line 910 of file text_format.cc.

◆ Parse()

bool google::protobuf::TextFormat::Parser::ParserImpl::Parse ( Message output)
inline

Definition at line 299 of file text_format.cc.

◆ ParseField()

bool google::protobuf::TextFormat::Parser::ParserImpl::ParseField ( const FieldDescriptor field,
Message output 
)
inline

Definition at line 310 of file text_format.cc.

◆ ReportError() [1/2]

void google::protobuf::TextFormat::Parser::ParserImpl::ReportError ( const std::string message)
inlineprivate

Definition at line 356 of file text_format.cc.

◆ ReportError() [2/2]

void google::protobuf::TextFormat::Parser::ParserImpl::ReportError ( int  line,
int  col,
const std::string message 
)
inline

Definition at line 320 of file text_format.cc.

◆ ReportWarning() [1/2]

void google::protobuf::TextFormat::Parser::ParserImpl::ReportWarning ( const std::string message)
inlineprivate

Definition at line 363 of file text_format.cc.

◆ ReportWarning() [2/2]

void google::protobuf::TextFormat::Parser::ParserImpl::ReportWarning ( int  line,
int  col,
const std::string message 
)
inline

Definition at line 336 of file text_format.cc.

◆ SkipField()

bool google::protobuf::TextFormat::Parser::ParserImpl::SkipField ( )
inlineprivate

Definition at line 624 of file text_format.cc.

◆ SkipFieldMessage()

bool google::protobuf::TextFormat::Parser::ParserImpl::SkipFieldMessage ( )
inlineprivate

Definition at line 685 of file text_format.cc.

◆ SkipFieldValue()

bool google::protobuf::TextFormat::Parser::ParserImpl::SkipFieldValue ( )
inlineprivate

Definition at line 835 of file text_format.cc.

◆ TryConsume()

bool google::protobuf::TextFormat::Parser::ParserImpl::TryConsume ( const std::string value)
inlineprivate

Definition at line 1166 of file text_format.cc.

Member Data Documentation

◆ allow_case_insensitive_field_

const bool google::protobuf::TextFormat::Parser::ParserImpl::allow_case_insensitive_field_
private

Definition at line 1204 of file text_format.cc.

◆ allow_field_number_

const bool google::protobuf::TextFormat::Parser::ParserImpl::allow_field_number_
private

Definition at line 1208 of file text_format.cc.

◆ allow_partial_

const bool google::protobuf::TextFormat::Parser::ParserImpl::allow_partial_
private

Definition at line 1209 of file text_format.cc.

◆ allow_unknown_enum_

const bool google::protobuf::TextFormat::Parser::ParserImpl::allow_unknown_enum_
private

Definition at line 1207 of file text_format.cc.

◆ allow_unknown_extension_

const bool google::protobuf::TextFormat::Parser::ParserImpl::allow_unknown_extension_
private

Definition at line 1206 of file text_format.cc.

◆ allow_unknown_field_

const bool google::protobuf::TextFormat::Parser::ParserImpl::allow_unknown_field_
private

Definition at line 1205 of file text_format.cc.

◆ error_collector_

io::ErrorCollector* google::protobuf::TextFormat::Parser::ParserImpl::error_collector_
private

Definition at line 1197 of file text_format.cc.

◆ finder_

const TextFormat::Finder* google::protobuf::TextFormat::Parser::ParserImpl::finder_
private

Definition at line 1198 of file text_format.cc.

◆ had_errors_

bool google::protobuf::TextFormat::Parser::ParserImpl::had_errors_
private

Definition at line 1211 of file text_format.cc.

◆ parse_info_tree_

ParseInfoTree* google::protobuf::TextFormat::Parser::ParserImpl::parse_info_tree_
private

Definition at line 1199 of file text_format.cc.

◆ recursion_limit_

int google::protobuf::TextFormat::Parser::ParserImpl::recursion_limit_
private

Definition at line 1210 of file text_format.cc.

◆ root_message_type_

const Descriptor* google::protobuf::TextFormat::Parser::ParserImpl::root_message_type_
private

Definition at line 1202 of file text_format.cc.

◆ singular_overwrite_policy_

SingularOverwritePolicy google::protobuf::TextFormat::Parser::ParserImpl::singular_overwrite_policy_
private

Definition at line 1203 of file text_format.cc.

◆ tokenizer_

io::Tokenizer google::protobuf::TextFormat::Parser::ParserImpl::tokenizer_
private

Definition at line 1201 of file text_format.cc.

◆ tokenizer_error_collector_

ParserErrorCollector google::protobuf::TextFormat::Parser::ParserImpl::tokenizer_error_collector_
private

Definition at line 1200 of file text_format.cc.


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


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