aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputFile.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 12:04:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 12:04:46 +0100
commit770703c9c5c926be760af836bee26e554e81a71c (patch)
treef9368db373d91d48d9476790d9dbdcbbcf3dc5dc /src/OutputFile.h
parent28d794ab7d47e4f2585ac73f8a69c9c68962b678 (diff)
downloaddabmod-770703c9c5c926be760af836bee26e554e81a71c.tar.gz
dabmod-770703c9c5c926be760af836bee26e554e81a71c.tar.bz2
dabmod-770703c9c5c926be760af836bee26e554e81a71c.zip
Add option to show metadata for file output
Diffstat (limited to 'src/OutputFile.h')
-rw-r--r--src/OutputFile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/OutputFile.h b/src/OutputFile.h
index fedea40..745e672 100644
--- a/src/OutputFile.h
+++ b/src/OutputFile.h
@@ -42,7 +42,7 @@
class OutputFile : public ModOutput, public ModMetadata
{
public:
- OutputFile(std::string filename);
+ OutputFile(const std::string& filename, bool show_metadata);
virtual int process(Buffer* dataIn) override;
const char* name() override { return "OutputFile"; }
@@ -51,6 +51,7 @@ public:
const meta_vec_t& metadataIn) override;
protected:
+ bool myShowMetadata = false;
std::string myFilename;
struct FILEDeleter{ void operator()(FILE* fd){ if (fd) fclose(fd); }};