KiCad PCB EDA Suite
Loading...
Searching...
No Matches
calc_parser::ERROR_COLLECTOR Class Reference

#include <text_eval_types.h>

Public Member Functions

void AddError (std::string aError)
 
void AddWarning (std::string aWarning)
 
void AddSyntaxError (int aLine=-1, int aColumn=-1)
 
void AddParseFailure ()
 
bool HasErrors () const
 
bool HasWarnings () const
 
const std::vector< std::string > & GetErrors () const
 
const std::vector< std::string > & GetWarnings () const
 
std::string GetAllMessages () const
 
void Clear ()
 

Private Attributes

std::vector< std::string > m_errors
 
std::vector< std::string > m_warnings
 

Detailed Description

Definition at line 62 of file text_eval_types.h.

Member Function Documentation

◆ AddError()

void calc_parser::ERROR_COLLECTOR::AddError ( std::string aError)
inline

Definition at line 65 of file text_eval_types.h.

References m_errors.

Referenced by AddParseFailure(), AddSyntaxError(), and BOOST_AUTO_TEST_CASE().

◆ AddParseFailure()

void calc_parser::ERROR_COLLECTOR::AddParseFailure ( )
inline

Definition at line 83 of file text_eval_types.h.

References AddError().

◆ AddSyntaxError()

void calc_parser::ERROR_COLLECTOR::AddSyntaxError ( int aLine = -1,
int aColumn = -1 )
inline

Definition at line 75 of file text_eval_types.h.

References AddError().

◆ AddWarning()

void calc_parser::ERROR_COLLECTOR::AddWarning ( std::string aWarning)
inline

Definition at line 70 of file text_eval_types.h.

References m_warnings.

Referenced by BOOST_AUTO_TEST_CASE().

◆ Clear()

void calc_parser::ERROR_COLLECTOR::Clear ( )
inline

Definition at line 106 of file text_eval_types.h.

References m_errors, and m_warnings.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetAllMessages()

std::string calc_parser::ERROR_COLLECTOR::GetAllMessages ( ) const
inline

Definition at line 93 of file text_eval_types.h.

References m_errors, m_warnings, and result.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetErrors()

const std::vector< std::string > & calc_parser::ERROR_COLLECTOR::GetErrors ( ) const
inline

◆ GetWarnings()

const std::vector< std::string > & calc_parser::ERROR_COLLECTOR::GetWarnings ( ) const
inline

Definition at line 91 of file text_eval_types.h.

References m_warnings.

Referenced by BOOST_AUTO_TEST_CASE().

◆ HasErrors()

bool calc_parser::ERROR_COLLECTOR::HasErrors ( ) const
inline

Definition at line 88 of file text_eval_types.h.

References m_errors.

Referenced by BOOST_AUTO_TEST_CASE(), and calc_parser::DOC_PROCESSOR::Process().

◆ HasWarnings()

bool calc_parser::ERROR_COLLECTOR::HasWarnings ( ) const
inline

Definition at line 89 of file text_eval_types.h.

References m_warnings.

Referenced by BOOST_AUTO_TEST_CASE().

Member Data Documentation

◆ m_errors

std::vector<std::string> calc_parser::ERROR_COLLECTOR::m_errors
private

Definition at line 113 of file text_eval_types.h.

Referenced by AddError(), Clear(), GetAllMessages(), GetErrors(), and HasErrors().

◆ m_warnings

std::vector<std::string> calc_parser::ERROR_COLLECTOR::m_warnings
private

Definition at line 114 of file text_eval_types.h.

Referenced by AddWarning(), Clear(), GetAllMessages(), GetWarnings(), and HasWarnings().


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