Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0c0db073
Commit
0c0db073
authored
Dec 05, 2012
by
Davis King
Browse files
Added a version of print_options() that doesn't take an ostream but just prints
to cout.
parent
82463617
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
dlib/cmd_line_parser/cmd_line_parser_kernel_abstract.h
dlib/cmd_line_parser/cmd_line_parser_kernel_abstract.h
+12
-0
dlib/cmd_line_parser/cmd_line_parser_print_1.h
dlib/cmd_line_parser/cmd_line_parser_print_1.h
+8
-2
No files found.
dlib/cmd_line_parser/cmd_line_parser_kernel_abstract.h
View file @
0c0db073
...
...
@@ -302,6 +302,18 @@ namespace dlib
it will have no effect on the state of #*this.
!*/
void
print_options
(
)
const
;
/*!
ensures
- prints all the command line options to cout.
- #at_start() == true
throws
- any exception.
if an exception is thrown then #at_start() == true but otherwise
it will have no effect on the state of #*this.
!*/
// -------------------------------------------------------------
// Input Validation Tools
// -------------------------------------------------------------
...
...
dlib/cmd_line_parser/cmd_line_parser_print_1.h
View file @
0c0db073
...
...
@@ -23,7 +23,13 @@ namespace dlib
void
print_options
(
std
::
basic_ostream
<
typename
clp_base
::
char_type
>&
out
);
)
const
;
void
print_options
(
)
const
{
print_options
(
std
::
cout
);
}
};
...
...
@@ -47,7 +53,7 @@ namespace dlib
void
cmd_line_parser_print_1
<
clp_base
>::
print_options
(
std
::
basic_ostream
<
typename
clp_base
::
char_type
>&
out
)
)
const
{
typedef
typename
clp_base
::
char_type
ct
;
typedef
std
::
basic_string
<
ct
>
string
;
...
...
Write
Preview
Markdown
is supported
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