22 #ifndef TOOLS_ERROR_CONTAINER_HPP_INCLUDED
23 #define TOOLS_ERROR_CONTAINER_HPP_INCLUDED
170 file(f),line(l),name(n){}
181 #endif // TOOLS_ERROR_CONTAINER_HPP_INCLUDED
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
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.
std::map< std::string, std::vector< error_cache_element > > error_cache_map
void remove_type_errors(const std::string &type)
Clears type cache.
bool is_empty() const
Checks, if container is empty.
Container of errors, which are generated while schema generator tool is parsing source files...
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
error_cache_element(const std::string &f, int l, const std::string &n)
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.