libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::oss::Errors Class Reference

#include <Parser.h>

Classes

class  Err
 

Public Member Functions

void Error (int line, int col, const char *s)
 
 Errors (const Log &log)
 
void Exception (const char *s)
 
void RecordWarning (int line, int col, const char *s)
 Records a warning without logging it: a caller that reports the same class of finding itself (see Parser::ReportUnresolvedTypes) gets one log line per load instead of one per occurrence, while every finding stays available to callers.
 
void SynErr (int line, int col, int n)
 
void Warning (const char *s)
 
void Warning (int line, int col, const char *s)
 

Public Attributes

std::list< Err > errors
 
bool hasErrors =false
 
Log log
 

Constructor & Destructor Documentation

◆ Errors()

osmscout::oss::Errors::Errors ( const Log &  log)
explicit

Member Function Documentation

◆ Error()

◆ Exception()

◆ RecordWarning()

void osmscout::oss::Errors::RecordWarning ( int  line,
int  col,
const char *  s 
)

Records a warning without logging it: a caller that reports the same class of finding itself (see Parser::ReportUnresolvedTypes) gets one log line per load instead of one per occurrence, while every finding stays available to callers.

References osmscout::oss::Errors::Err::column, errors, osmscout::oss::Errors::Err::line, osmscout::oss::Errors::Err::text, osmscout::oss::Errors::Err::type, and osmscout::oss::Errors::Err::Warning.

Referenced by osmscout::oss::Parser::NoteUnresolvedType().

◆ SynErr()

◆ Warning() [1/2]

◆ Warning() [2/2]

Member Data Documentation

◆ errors

std::list<Err> osmscout::oss::Errors::errors

◆ hasErrors

◆ log


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