Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CoMISo
Base
Commits
9c2af037
Commit
9c2af037
authored
8 years ago
by
Marco Amagliani
Browse files
Options
Downloads
Patches
Plain Diff
Renamed debug functions to set/get the option that enable debug output on console and on output.
parent
3fef70b7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Debug/DebFile.cc
+12
-12
12 additions, 12 deletions
Debug/DebFile.cc
Debug/DebFile.hh
+4
-4
4 additions, 4 deletions
Debug/DebFile.hh
with
16 additions
and
16 deletions
Debug/DebFile.cc
+
12
−
12
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
...
...
This diff is collapsed.
Click to expand it.
Debug/DebFile.hh
+
4
−
4
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment