From 5d965e80be2e6ab62bc82fb2e0d4d472153ad241 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli (think)" Date: Sun, 10 Nov 2013 21:50:12 +0100 Subject: crc-dabmod: add ZeroMQ input module --- src/OutputFile.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/OutputFile.cpp') 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 #include #include -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!"); } -- cgit v1.2.3