Current Version: 1.0.10
Project Name: csspp
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
csspp::error Class Reference

#include <error.h>

Collaboration diagram for csspp::error:
Collaboration graph
[legend]

Public Member Functions

 error ()
 
error_count_t get_error_count () const
 
std::ostream & get_error_stream () const
 
error_count_t get_warning_count () const
 
erroroperator<< (position const &pos)
 
erroroperator<< (error_mode_t mode)
 
erroroperator<< (std::string const &msg)
 
erroroperator<< (char const *msg)
 
erroroperator<< (int32_t value)
 
erroroperator<< (int64_t value)
 
erroroperator<< (double value)
 
void set_count_warnings_as_errors (bool warnings_as_errors)
 
void set_error_count (error_count_t count)
 
void set_error_stream (std::ostream &err_stream)
 
void set_hide_all (bool show_debug)
 
void set_show_debug (bool show_debug)
 
void set_verbose (bool status)
 
void set_warning_count (error_count_t count)
 

Static Public Member Functions

static errorinstance ()
 

Private Member Functions

void reset ()
 

Private Attributes

std::ostream * f_error = nullptr
 
error_count_t f_error_count = 0
 
bool f_hide_all = false
 
std::stringstream f_message
 
position f_position
 
bool f_show_debug = false
 
bool f_verbose = false
 
error_count_t f_warning_count = 0
 
bool f_warnings_as_errors = false
 

Detailed Description

Definition at line 41 of file error.h.

Constructor & Destructor Documentation

csspp::error::error ( )

Definition at line 73 of file error.cpp.

Referenced by instance().

Member Function Documentation

error_count_t csspp::error::get_error_count ( ) const

Definition at line 106 of file error.cpp.

References f_error_count.

Referenced by csspp::error_happened_t::error_happened().

std::ostream & csspp::error::get_error_stream ( ) const

Definition at line 91 of file error.cpp.

References f_error.

error_count_t csspp::error::get_warning_count ( ) const

Definition at line 116 of file error.cpp.

References f_warning_count.

Referenced by csspp::error_happened_t::warning_happened().

error & csspp::error::instance ( )
static

Definition at line 78 of file error.cpp.

References error(), csspp::anonymous_namespace{error.cpp}::g_error, and reset().

Referenced by csspp::anonymous_namespace{expr_additive.cpp}::add(), csspp::expression::apply_power(), csspp::parser::argify(), csspp::parser::at_rule(), csspp::parser::block(), csspp::parser::block_list(), csspp::expression::boolean(), csspp::lexer::comment(), anonymous_namespace{csspp.cpp}::pp::compile(), csspp::compiler::compile_at_keyword(), csspp::compiler::compile_declaration(), csspp::expression::compile_list(), csspp::compiler::compile_qualified_rule(), csspp::parser::component_value_list(), csspp::expression::conditional(), csspp::parser::declaration(), csspp::parser::declaration_list(), csspp::anonymous_namespace{internal_functions.cpp}::dimension_to_radians(), csspp::expression::dimensions_to_vectors(), csspp::error_happened_t::error_happened(), csspp::lexer::escape(), csspp::expression::excecute_function(), csspp::compiler::compiler_state_t::execute_user_function(), csspp::compiler::expand_nested_declarations(), csspp::lexer::getc(), csspp::compiler::handle_mixin(), csspp::lexer::hash(), csspp::lexer::identifier(), csspp::expression::internal_function__abs(), csspp::expression::internal_function__acos(), csspp::expression::internal_function__alpha(), csspp::expression::internal_function__asin(), csspp::expression::internal_function__atan(), csspp::expression::internal_function__blue(), csspp::expression::internal_function__ceil(), csspp::expression::internal_function__cos(), csspp::expression::internal_function__decimal_number(), csspp::expression::internal_function__floor(), csspp::expression::internal_function__frgb(), csspp::expression::internal_function__frgba(), csspp::expression::internal_function__function_exists(), csspp::expression::internal_function__global_variable_exists(), csspp::expression::internal_function__green(), csspp::expression::internal_function__hsl(), csspp::expression::internal_function__hsla(), csspp::expression::internal_function__hue(), csspp::expression::internal_function__identifier(), csspp::expression::internal_function__if(), csspp::expression::internal_function__integer(), csspp::expression::internal_function__lightness(), csspp::expression::internal_function__log(), csspp::expression::internal_function__max(), csspp::expression::internal_function__min(), csspp::expression::internal_function__not(), csspp::expression::internal_function__percentage(), csspp::expression::internal_function__red(), csspp::expression::internal_function__rgb(), csspp::expression::internal_function__rgba(), csspp::expression::internal_function__round(), csspp::expression::internal_function__saturation(), csspp::expression::internal_function__sign(), csspp::expression::internal_function__sin(), csspp::expression::internal_function__sqrt(), csspp::expression::internal_function__str_length(), csspp::expression::internal_function__string(), csspp::expression::internal_function__tan(), csspp::expression::internal_function__type_of(), csspp::expression::internal_function__unique_id(), csspp::expression::internal_function__unit(), csspp::expression::internal_function__variable_exists(), csspp::expression::is_comparable(), csspp::expression::is_less_than(), csspp::anonymous_namespace{expr_equality.cpp}::match(), csspp::lexer::mbtowc(), csspp::expression::multiply(), csspp::lexer::next_token(), csspp::lexer::number(), csspp::compiler::parse_selector(), csspp::expression::post(), anonymous_namespace{csspp.cpp}::pp::pp(), csspp::compiler::prepare_function_arguments(), csspp::parser::qualified_rule(), csspp::compiler::replace_at_keyword(), csspp::compiler::replace_else(), csspp::compiler::replace_if(), csspp::compiler::replace_import(), csspp::compiler::replace_variable(), csspp::compiler::replace_variables_in_comment(), csspp::parser::rule(), csspp::safe_error_stream_t::safe_error_stream_t(), csspp::compiler::selector_attribute_check(), csspp::compiler::selector_list(), csspp::compiler::selector_simple_term(), csspp::compiler::selector_term(), csspp::compiler::set_validation_script(), csspp::compiler::set_variable(), csspp::lexer::string(), csspp::parser::stylesheet(), csspp::expression::unary(), csspp::lexer::unicode_range(), csspp::anonymous_namespace{assembler.cpp}::verify_dimension(), csspp::error_happened_t::warning_happened(), csspp::lexer::wctomb(), csspp::safe_error_stream_t::~safe_error_stream_t(), and csspp::safe_error_t::~safe_error_t().

error & csspp::error::operator<< ( position const &  pos)

Definition at line 141 of file error.cpp.

References f_position.

error & csspp::error::operator<< ( error_mode_t  mode)
error & csspp::error::operator<< ( std::string const &  msg)

Definition at line 219 of file error.cpp.

References f_message.

error & csspp::error::operator<< ( char const *  msg)

Definition at line 225 of file error.cpp.

References f_message.

error & csspp::error::operator<< ( int32_t  value)

Definition at line 231 of file error.cpp.

References f_message.

error & csspp::error::operator<< ( int64_t  value)

Definition at line 237 of file error.cpp.

References f_message.

error & csspp::error::operator<< ( double  value)

Definition at line 243 of file error.cpp.

References f_message.

void csspp::error::reset ( )
private

Definition at line 249 of file error.cpp.

References f_message.

Referenced by instance().

void csspp::error::set_count_warnings_as_errors ( bool  warnings_as_errors)

Definition at line 101 of file error.cpp.

References f_warnings_as_errors.

Referenced by anonymous_namespace{csspp.cpp}::pp::pp().

void csspp::error::set_error_count ( error_count_t  count)

Definition at line 111 of file error.cpp.

References f_error_count.

Referenced by csspp::safe_error_t::~safe_error_t().

void csspp::error::set_error_stream ( std::ostream &  err_stream)
void csspp::error::set_hide_all ( bool  show_debug)

Definition at line 126 of file error.cpp.

References f_hide_all.

Referenced by anonymous_namespace{csspp.cpp}::pp::pp().

void csspp::error::set_show_debug ( bool  show_debug)

Definition at line 131 of file error.cpp.

References f_show_debug.

Referenced by anonymous_namespace{csspp.cpp}::pp::pp().

void csspp::error::set_verbose ( bool  status)

Definition at line 136 of file error.cpp.

References f_verbose.

void csspp::error::set_warning_count ( error_count_t  count)

Definition at line 121 of file error.cpp.

References f_warning_count.

Referenced by csspp::safe_error_t::~safe_error_t().

Member Data Documentation

std::ostream* csspp::error::f_error = nullptr
private

Definition at line 75 of file error.h.

Referenced by get_error_stream(), operator<<(), and set_error_stream().

error_count_t csspp::error::f_error_count = 0
private

Definition at line 76 of file error.h.

Referenced by get_error_count(), operator<<(), and set_error_count().

bool csspp::error::f_hide_all = false
private

Definition at line 79 of file error.h.

Referenced by operator<<(), and set_hide_all().

std::stringstream csspp::error::f_message
private

Definition at line 74 of file error.h.

Referenced by operator<<(), and reset().

position csspp::error::f_position
private

Definition at line 73 of file error.h.

Referenced by operator<<().

bool csspp::error::f_show_debug = false
private

Definition at line 80 of file error.h.

Referenced by operator<<(), and set_show_debug().

bool csspp::error::f_verbose = false
private

Definition at line 81 of file error.h.

Referenced by operator<<(), and set_verbose().

error_count_t csspp::error::f_warning_count = 0
private

Definition at line 77 of file error.h.

Referenced by get_warning_count(), operator<<(), and set_warning_count().

bool csspp::error::f_warnings_as_errors = false
private

Definition at line 78 of file error.h.

Referenced by operator<<(), and set_count_warnings_as_errors().


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

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.