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
2d74e07f
Commit
2d74e07f
authored
Apr 13, 2018
by
thomas.forbriger
Browse files
libdatrwxx [FEATURE]: provide access to debug flag in ianystream
parent
ea18ed2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/libdatrwxx/readany.h
View file @
2d74e07f
...
...
@@ -39,6 +39,7 @@
* support property query
* - 07/09/2011 V1.9 more string type format ID support: openmode
* - 29/11/2011 V1.10 present complete idatstream interface
* - 13/04/2018 V1.11 provide access to debug flag if output stream
*
* ============================================================================
*/
...
...
@@ -47,7 +48,7 @@
#ifndef DATRW_READANY_H_VERSION
#define DATRW_READANY_H_VERSION \
"DATRW_READANY_H V1.1
0
"
"DATRW_READANY_H V1.1
1
"
#include<string>
#include<datrwxx/datread.h>
...
...
@@ -111,6 +112,10 @@ namespace datrw {
Properties
ANYDELEGATE
(
properties
)
static
std
::
ios_base
::
openmode
openmode
(
const
Eformat
&
format
);
static
std
::
ios_base
::
openmode
openmode
(
const
std
::
string
&
format
);
//! indicate debug mode
bool
debug
()
{
return
this
->
idatstream
().
debug
();
}
//! set debug mode
void
debug
(
const
bool
&
debug
)
{
this
->
idatstream
().
debug
(
debug
);
}
private:
//! \brief actually open stream (to be called by constructor)
void
open
(
std
::
istream
&
os
,
std
::
string
format
,
...
...
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