17 inline static const Format latex{
"table",
"&",
"\\\\\n",
"tex" };
18 inline static const Format plot{
"plot",
",",
"\n",
"csv" };
20 inline static const Format csv{
"csv",
",",
"\n",
"csv" };
29 static std::ofstream
get_stream(
const std::string &fname) {
30 std::ofstream _ofs(fname.c_str());
32 std::string _msg =
"error open file:" + fname;
47 std::stringstream _stream;
64 std::stringstream _stream;
86 std::stringstream _stream;
90 <<
"-" <<
id <<
"." << fmt.
ext();
129 Output::_array = fmt;
friend std::ostream & operator<<(std::ostream &os, const Format &fmt)
operator << überladener Ausgabeoperator internes Formatierungsobjekt wird gesetzt.
static const Format & array()
array lese internes Formatierungsobjekt
static std::ofstream get_stream(const std::string &dirname, const Format &fmt)
get_output_stream Öffnen einer Ausgabedatei in einem Unterverzeichnis. Falls die Datei nicht geöffnet...
static const Format terminal
static std::ofstream get_stream(const std::string &fname)
get_output_stream Öffnen einer Ausgabedatei falls die Datei nicht geöffnet werden kann wird ein Fehle...
The Output struct Hilfsklasse zur Erzeugung von Ausgabeströmen zum Schreiben in Dateien.
static std::ofstream get_stream(const std::string &dirname, const Format &fmt, const T &id)
get_output_stream Öffnen einer Ausgabedatei in einem Unterverzeichnis. Falls die Datei nicht geöffnet...
const std::string dirname
static const std::string data_directory
static std::ofstream get_stream(const std::string &dirname, const std::string &fname)
get_output_stream Öffnen einer Ausgabedatei in einem Unterverzeichnis, Falls die Datei nicht geöffnet...
static const Format latex