Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
01e4b31f
Commit
01e4b31f
authored
Jul 23, 2017
by
thomas.forbriger
Browse files
libs/libdatrwxx [FEATURE]: report library version in online help
parent
b7277149
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/libs/libdatrwxx/aalibdatrwxx.cc
View file @
01e4b31f
...
...
@@ -15,7 +15,7 @@
namespace
datrw
{
const
char
*
const
libversion
=
"libdatrwxx (version 201
6-11-18
)"
;
const
char
*
const
libversion
=
"libdatrwxx (version 201
7-07-23
)"
;
}
// namespace datrw
...
...
@@ -39,6 +39,7 @@ namespace datrw {
*
* REVISIONS and CHANGES
* - 05/07/2016 V1.0 Thomas Forbriger
* - 23/0//2017 V1.1 advance library version date
*
* ============================================================================
*/
...
...
src/libs/libdatrwxx/formats.cc
View file @
01e4b31f
...
...
@@ -36,12 +36,14 @@
* - 08/11/2011 V1.6 make ASCII input module visible
* - 19/11/2011 V1.7 make binary module visible
* - 05/12/2011 V1.8 provide format specfic online help
* - 23/07/2017 V1.9 report library version
*
* ============================================================================
*/
#define DATRW_FORMATS_CC_VERSION \
"DATRW_FORMATS_CC V1.
8
"
"DATRW_FORMATS_CC V1.
9
"
#include
<datrwxx/aalibdatrwxx.h>
#include
<datrwxx/formats.h>
#include
<datrwxx/formatmodifier.h>
#include
<datrwxx/sff.h>
...
...
@@ -210,6 +212,7 @@ namespace datrw {
void
online_help
(
std
::
ostream
&
os
)
{
os
<<
std
::
endl
<<
datrw
::
libversion
<<
std
::
endl
<<
"Online help obtained from I/O streams:"
<<
std
::
endl
;
os
<<
"--------------------------------------"
...
...
@@ -235,6 +238,7 @@ namespace datrw {
void
supported_input_data_types
(
std
::
ostream
&
os
)
{
os
<<
datrw
::
libversion
<<
std
::
endl
;
os
<<
"data formats supported by ianystream:"
<<
std
::
endl
;
os
.
width
(
13
);
os
<<
sff
::
streamID
<<
": Stuttgart File Format"
<<
std
::
endl
;
...
...
@@ -268,6 +272,7 @@ namespace datrw {
void
supported_output_data_types
(
std
::
ostream
&
os
)
{
os
<<
datrw
::
libversion
<<
std
::
endl
;
os
<<
"data formats supported by oanystream:"
<<
std
::
endl
;
os
.
width
(
13
);
os
<<
sff
::
streamID
<<
": Stuttgart File Format"
<<
std
::
endl
;
...
...
src/libs/libdatrwxx/libdatrwxxinfo.cc
View file @
01e4b31f
...
...
@@ -30,16 +30,18 @@
* - 07/09/2011 V1.0 Thomas Forbriger
* - 29/11/2011 V1.1 remove dependency to libtfxx
* - 24/01/2012 V1.2 increase granularity of receivable texts
* - 23/07/2017 V1.3 report library version
*
* ============================================================================
*/
#define LIBDATRWXXINFO_VERSION \
"LIBDATRWXXINFO V1.
2
present all online help to the user"
"LIBDATRWXXINFO V1.
3
present all online help to the user"
#include
<iostream>
#include
<string>
#include
<datrwxx/formats.h>
#include
<datrwxx/formatmodifier.h>
#include
<datrwxx/aalibdatrwxx.h>
using
std
::
cout
;
using
std
::
cerr
;
...
...
@@ -49,6 +51,7 @@ int main(int iargc, char* argv[])
{
cout
<<
"This is libdatrwxxinfo"
<<
endl
;
cout
<<
LIBDATRWXXINFO_VERSION
<<
endl
;
cout
<<
datrw
::
libversion
<<
endl
;
cout
<<
endl
;
if
(
iargc
>
1
)
{
...
...
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