Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
0c0db073
Commit
0c0db073
authored
Dec 06, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a version of print_options() that doesn't take an ostream but just prints
to cout.
parent
82463617
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
cmd_line_parser_kernel_abstract.h
dlib/cmd_line_parser/cmd_line_parser_kernel_abstract.h
+12
-0
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
...
@@ -302,6 +302,18 @@ namespace dlib
it will have no effect on the state of #*this.
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
// Input Validation Tools
// -------------------------------------------------------------
// -------------------------------------------------------------
...
...
dlib/cmd_line_parser/cmd_line_parser_print_1.h
View file @
0c0db073
...
@@ -23,7 +23,13 @@ namespace dlib
...
@@ -23,7 +23,13 @@ namespace dlib
void
print_options
(
void
print_options
(
std
::
basic_ostream
<
typename
clp_base
::
char_type
>&
out
std
::
basic_ostream
<
typename
clp_base
::
char_type
>&
out
);
)
const
;
void
print_options
(
)
const
{
print_options
(
std
::
cout
);
}
};
};
...
@@ -47,7 +53,7 @@ namespace dlib
...
@@ -47,7 +53,7 @@ namespace dlib
void
cmd_line_parser_print_1
<
clp_base
>::
void
cmd_line_parser_print_1
<
clp_base
>::
print_options
(
print_options
(
std
::
basic_ostream
<
typename
clp_base
::
char_type
>&
out
std
::
basic_ostream
<
typename
clp_base
::
char_type
>&
out
)
)
const
{
{
typedef
typename
clp_base
::
char_type
ct
;
typedef
typename
clp_base
::
char_type
ct
;
typedef
std
::
basic_string
<
ct
>
string
;
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