ct_common  1.0.1
Common library for combinatorial testing
src/ct_common/file_parse/err_logger.cpp
Go to the documentation of this file.
00001 #include <ct_common/file_parse/err_logger.h>
00002 
00003 using namespace ct::common;
00004 
00005 ErrLogger::ErrLogger(void)
00006     : num_errs_(0), num_warnings_(0) {
00007 }
00008 
00009 ErrLogger::ErrLogger(const ErrLogger &from)
00010     : num_errs_(from.num_errs_), num_warnings_(from.num_warnings_) {
00011 }
00012 
00013 ErrLogger::~ErrLogger(void) {
00014 }
00015 
00016 ErrLogger &ErrLogger::operator =(const ErrLogger &right) {
00017   this->num_errs_ = right.num_errs_;
00018   this->num_warnings_ = right.num_warnings_;
00019   return *this;
00020 }
00021 
00022 void ErrLogger::reportError(const std::string &str) {
00023   this->num_errs_++;
00024   this->innerReportError(str);
00025 }
00026 
00027 void ErrLogger::reportWarning(const std::string &str) {
00028   this->num_warnings_++;
00029   this->innerReportWarning(str);
00030 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines