aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2013-11-10 21:50:12 +0100
committerMatthias P. Braendli (think) <matthias@mpb.li>2013-11-10 21:50:12 +0100
commit5d965e80be2e6ab62bc82fb2e0d4d472153ad241 (patch)
tree5add36f337b0de524b3d098f0b1fcc8d68aba0d7 /src/OutputFile.cpp
parent4f9a01a80570437b86e69eb0542b13df9a20743d (diff)
downloaddabmod-5d965e80be2e6ab62bc82fb2e0d4d472153ad241.tar.gz
dabmod-5d965e80be2e6ab62bc82fb2e0d4d472153ad241.tar.bz2
dabmod-5d965e80be2e6ab62bc82fb2e0d4d472153ad241.zip
crc-dabmod: add ZeroMQ input module
Diffstat (limited to 'src/OutputFile.cpp')
-rw-r--r--src/OutputFile.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/OutputFile.cpp b/src/OutputFile.cpp
index c411c85..d0d87c8 100644
--- a/src/OutputFile.cpp
+++ b/src/OutputFile.cpp
@@ -22,20 +22,21 @@
#include "OutputFile.h"
#include "PcDebug.h"
+#include <string>
#include <assert.h>
#include <stdexcept>
-OutputFile::OutputFile(const char* filename) :
+OutputFile::OutputFile(std::string filename) :
ModOutput(ModFormat(1), ModFormat(0)),
myFilename(filename)
{
PDEBUG("OutputFile::OutputFile(filename: %s) @ %p\n",
- filename, this);
+ filename.c_str(), this);
- myFile = fopen(filename, "w");
+ myFile = fopen(filename.c_str(), "w");
if (myFile == NULL) {
- perror(filename);
+ perror(filename.c_str());
throw std::runtime_error(
"OutputFile::OutputFile() unable to open file!");
}