Definition at line 741 of file datalogger.cc.
References Error(), and str.
743 if (stream.is_open())
746 Error(filename+
" was already open when trying to open it.");
751 stream.open(filename.c_str(), ios_base::out | ios_base::app);
755 str <<
"ofstream::open() failed for '" << filename <<
"': " << strerror(errno) <<
" [errno=" << errno <<
"]";
760 if (!stream.is_open())
762 Error(
"File "+filename+
" not open as it ought to be.");
766 Info(
"Opened: "+filename);
int Error(const std::string &str)
int Info(const std::string &str)