25 list_.push_back(message);
30 s << file <<
":" << line <<
": Read error at line "<< line <<
".\n";
31 list_.push_back(s.str());
37 s << file <<
":" << line <<
": Entity "<< name
38 <<
" is opened but not closed.\n";
39 list_.push_back(s.str());
45 s << file <<
":" << line <<
": Entity "<< name
46 <<
" is being closed but was not opened.\n";
47 list_.push_back(s.str());
54 s << file <<
":" << line <<
": Parent "<< first <<
" is closed due to parent"
55 << second <<
"is opened here. \n";
56 list_.push_back(s.str());
62 s << file <<
":" << line <<
": Tag "<< name <<
" has no parent \n";
63 list_.push_back(s.str());
69 s << file <<
":" << line <<
": Type "<< name <<
" has wrong value:"<<
70 value <<
". Cannot create a regex\n";
71 list_.push_back(s.str());
86 s << file <<
":" << line <<
": Type "<< type <<
" is overriding here \n";
87 list_.push_back(s.str());
100 for (std::vector<std::string>::const_iterator
i =
list_.begin();
104 error_cache_map::const_iterator
i =
types_.begin() ;
105 for ( ; i !=
types_.end(); ++
i){
106 for (std::vector<error_cache_element>::const_iterator ii=
107 i->second.begin(); ii != i->second.end();++ii){
108 s << ii->file <<
":" << ii->line <<
": Unknown type: "
114 for (std::vector<error_cache_element>::const_iterator ii =
115 i->second.begin(); ii != i->second.end();++ii){
116 s << ii->file <<
":" << ii->line <<
": Failed link: "
void remove_link_errors(const std::string &link)
Clears link cache.
void add_orphan_error(const std::string &file, int line, const std::string &name)
Generate and put GCC-style error message about tag without parent.
GLuint GLuint GLsizei GLenum type
This file contains object "error_container", which are used to store error messages while annotation ...
void add_second_parent_error(const std::string &file, int line, const std::string &first, const std::string &second)
Generate and put GCC-style error message about opening parent block before before closing previous bl...
GLsizei const GLfloat * value
void add_link_error(const std::string &file, int line, const std::string &link)
Generate and put GCC-style error message about failed link to link cache.
void add_opened_entity_error(const std::string &file, int line, const std::string &name)
Generate and put GCC-style error message about annotation block somebody missed to close...
void add_type_error(const std::string &file, int line, const std::string &type)
Generate and put GCC-style error message about unknown type to type cache.
void overriding_type_error(const std::string &file, int line, const std::string &type)
Generate and put GCC-style error message about overriding type Overriding means that that type was de...
void add_simple_error(const std::string &message)
Puts simple error message in container.
void remove_type_errors(const std::string &type)
Clears type cache.
void print_errors(std::ostream &s) const
Prints errors to output stream.
GLuint const GLchar * name
std::vector< std::string > list_
Container to store error messages.
GLsizei GLenum GLuint GLuint GLsizei char * message
void wrong_type_error(const std::string &file, int line, const std::string &name, const std::string &value)
Generate and put GCC-style error message about wrong type value.
void add_unopened_entity_error(const std::string &file, int line, const std::string &name)
Generate and put GCC-style error message about closing block that wasn't opened.
GLsizei const GLcharARB ** string
Container to cache type errors.
void add_read_error(const std::string &file, int line)
Generate and put GCC-style error message about error read file error.