Commit 9c2af037 authored by Marco Amagliani's avatar Marco Amagliani
Browse files

Renamed debug functions to set/get the option that enable debug output on console and on output.

parent 3fef70b7
...@@ -173,13 +173,13 @@ public: ...@@ -173,13 +173,13 @@ public:
double_format_ = str; double_format_ = str;
} }
void set_console_output_on(const bool _enbl) { enbl_cnsl_ = _enbl; } void set_console_output(const bool _enbl) { enbl_cnsl_ = _enbl; }
bool console_output_on() const { return enbl_cnsl_; } bool console_output() const { return enbl_cnsl_; }
void set_file_log_on(const bool _enbl) { enbl_file_log_ = _enbl; } void set_file_log(const bool _enbl) { enbl_file_log_ = _enbl; }
bool file_log_on() const { return enbl_file_log_; } bool file_log() const { return enbl_file_log_; }
void print(double _d) void print(double _d)
{ {
...@@ -441,24 +441,24 @@ void File::set_double_format(const char* const str) ...@@ -441,24 +441,24 @@ void File::set_double_format(const char* const str)
impl_->set_double_format(str); impl_->set_double_format(str);
} }
bool File::console_output_on() bool File::console_output()
{ {
return impl_->console_output_on(); return impl_->console_output();
} }
void File::set_console_output_on(const bool _enbl) void File::set_console_output(const bool _enbl)
{ {
impl_->set_console_output_on(_enbl); impl_->set_console_output(_enbl);
} }
bool File::file_log_on() bool File::file_log()
{ {
return impl_->file_log_on(); return impl_->file_log();
} }
void File::set_file_log_on(const bool _enbl) void File::set_file_log(const bool _enbl)
{ {
return impl_->set_file_log_on(_enbl); return impl_->set_file_log(_enbl);
} }
}//namespace Debug }//namespace Debug
......
...@@ -43,11 +43,11 @@ public: ...@@ -43,11 +43,11 @@ public:
const char* double_format() const; const char* double_format() const;
void set_double_format(const char* const str); void set_double_format(const char* const str);
bool console_output_on(); bool console_output();
void set_console_output_on(const bool _enbl); void set_console_output(const bool _enbl);
bool file_log_on(); bool file_log();
void set_file_log_on(const bool _enbl); void set_file_log(const bool _enbl);
private: private:
class Impl; class Impl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment