Commit 86a3b35b authored by thomas.forbriger's avatar thomas.forbriger
Browse files

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

parent f0335f80
......@@ -33,6 +33,7 @@
* - 29/07/2011 V1.3 added constructor which accepts format modifiers
* support property query
* - 07/09/2011 V1.4 more string type format ID support: openmode
* - 13/04/2018 V1.5 provide access to debug flag if output stream
*
* ============================================================================
*/
......@@ -41,7 +42,7 @@
#ifndef DATRW_WRITEANY_H_VERSION
#define DATRW_WRITEANY_H_VERSION \
"DATRW_WRITEANY_H V1.4"
"DATRW_WRITEANY_H V1.5"
#include<string>
#include<datrwxx/datwrite.h>
......@@ -94,6 +95,10 @@ namespace datrw {
Edatatype ANYDELEGATE( seriestype )
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->odatstream().debug(); }
//! set debug mode
void debug(const bool& debug) { this->odatstream().debug(debug); }
private:
//! \brief actually open stream (to be called by constructor)
void open(std::ostream& 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