Commit 2d74e07f authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libdatrwxx [FEATURE]: provide access to debug flag in ianystream

parent ea18ed2b
......@@ -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.10"
"DATRW_READANY_H V1.11"
#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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment