Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
Base
Commits
9c2af037
Commit
9c2af037
authored
Sep 26, 2016
by
Marco Amagliani
Browse files
Renamed debug functions to set/get the option that enable debug output on console and on output.
parent
3fef70b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Debug/DebFile.cc
View file @
9c2af037
...
...
@@ -173,13 +173,13 @@ public:
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
)
{
...
...
@@ -441,24 +441,24 @@ void File::set_double_format(const char* const 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
...
...
Debug/DebFile.hh
View file @
9c2af037
...
...
@@ -43,11 +43,11 @@ public:
const
char
*
double_format
()
const
;
void
set_double_format
(
const
char
*
const
str
);
bool
console_output
_on
();
void
set_console_output
_on
(
const
bool
_enbl
);
bool
console_output
();
void
set_console_output
(
const
bool
_enbl
);
bool
file_log
_on
();
void
set_file_log
_on
(
const
bool
_enbl
);
bool
file_log
();
void
set_file_log
(
const
bool
_enbl
);
private:
class
Impl
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment