Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::compiler::CommandLineInterface::ErrorPrinter Class Reference
Inheritance diagram for google::protobuf::compiler::CommandLineInterface::ErrorPrinter:
Inheritance graph
[legend]

Public Member Functions

void AddError (const std::string &filename, const std::string &element_name, const Message *descriptor, ErrorLocation location, const std::string &message)
 
void AddError (const std::string &filename, int line, int column, const std::string &message)
 
void AddError (int line, int column, const std::string &message)
 
void AddWarning (const std::string &filename, const std::string &element_name, const Message *descriptor, ErrorLocation location, const std::string &message)
 
void AddWarning (const std::string &filename, int line, int column, const std::string &message)
 
void AddWarning (int line, int column, const std::string &message)
 
 ErrorPrinter (ErrorFormat format, DiskSourceTree *tree=NULL)
 
bool FoundErrors () const
 
 ~ErrorPrinter ()
 
- Public Member Functions inherited from google::protobuf::compiler::MultiFileErrorCollector
 MultiFileErrorCollector ()
 
virtual ~MultiFileErrorCollector ()
 
- Public Member Functions inherited from google::protobuf::io::ErrorCollector
 ErrorCollector ()
 
virtual ~ErrorCollector ()
 
- Public Member Functions inherited from google::protobuf::DescriptorPool::ErrorCollector
 ErrorCollector ()
 
virtual ~ErrorCollector ()
 

Private Member Functions

void AddErrorOrWarning (const std::string &filename, int line, int column, const std::string &message, const std::string &type, std::ostream &out)
 

Private Attributes

const ErrorFormat format_
 
bool found_errors_
 
DiskSourceTreetree_
 

Additional Inherited Members

- Public Types inherited from google::protobuf::DescriptorPool::ErrorCollector
enum  ErrorLocation {
  NAME, NUMBER, TYPE, EXTENDEE,
  DEFAULT_VALUE, INPUT_TYPE, OUTPUT_TYPE, OPTION_NAME,
  OPTION_VALUE, IMPORT, OTHER
}
 

Detailed Description

Definition at line 277 of file command_line_interface.cc.

Constructor & Destructor Documentation

◆ ErrorPrinter()

google::protobuf::compiler::CommandLineInterface::ErrorPrinter::ErrorPrinter ( ErrorFormat  format,
DiskSourceTree tree = NULL 
)
inline

Definition at line 282 of file command_line_interface.cc.

◆ ~ErrorPrinter()

google::protobuf::compiler::CommandLineInterface::ErrorPrinter::~ErrorPrinter ( )
inline

Definition at line 284 of file command_line_interface.cc.

Member Function Documentation

◆ AddError() [1/3]

void google::protobuf::compiler::CommandLineInterface::ErrorPrinter::AddError ( const std::string filename,
const std::string element_name,
const Message descriptor,
ErrorLocation  location,
const std::string message 
)
inlinevirtual

◆ AddError() [2/3]

void google::protobuf::compiler::CommandLineInterface::ErrorPrinter::AddError ( const std::string filename,
int  line,
int  column,
const std::string message 
)
inlinevirtual

◆ AddError() [3/3]

void google::protobuf::compiler::CommandLineInterface::ErrorPrinter::AddError ( int  line,
int  column,
const std::string message 
)
inlinevirtual

Implements google::protobuf::io::ErrorCollector.

Definition at line 299 of file command_line_interface.cc.

◆ AddErrorOrWarning()

void google::protobuf::compiler::CommandLineInterface::ErrorPrinter::AddErrorOrWarning ( const std::string filename,
int  line,
int  column,
const std::string message,
const std::string type,
std::ostream &  out 
)
inlineprivate

Definition at line 323 of file command_line_interface.cc.

◆ AddWarning() [1/3]

void google::protobuf::compiler::CommandLineInterface::ErrorPrinter::AddWarning ( const std::string filename,
const std::string element_name,
const Message descriptor,
ErrorLocation  location,
const std::string message 
)
inlinevirtual

Reimplemented from google::protobuf::DescriptorPool::ErrorCollector.

Definition at line 314 of file command_line_interface.cc.

◆ AddWarning() [2/3]

void google::protobuf::compiler::CommandLineInterface::ErrorPrinter::AddWarning ( const std::string filename,
int  line,
int  column,
const std::string message 
)
inlinevirtual

◆ AddWarning() [3/3]

void google::protobuf::compiler::CommandLineInterface::ErrorPrinter::AddWarning ( int  line,
int  column,
const std::string message 
)
inlinevirtual

Reimplemented from google::protobuf::io::ErrorCollector.

Definition at line 303 of file command_line_interface.cc.

◆ FoundErrors()

bool google::protobuf::compiler::CommandLineInterface::ErrorPrinter::FoundErrors ( ) const
inline

Definition at line 320 of file command_line_interface.cc.

Member Data Documentation

◆ format_

const ErrorFormat google::protobuf::compiler::CommandLineInterface::ErrorPrinter::format_
private

Definition at line 357 of file command_line_interface.cc.

◆ found_errors_

bool google::protobuf::compiler::CommandLineInterface::ErrorPrinter::found_errors_
private

Definition at line 359 of file command_line_interface.cc.

◆ tree_

DiskSourceTree* google::protobuf::compiler::CommandLineInterface::ErrorPrinter::tree_
private

Definition at line 358 of file command_line_interface.cc.


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


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