The Output struct Hilfsklasse zur Erzeugung von Ausgabeströmen zum Schreiben in Dateien.
More...
#include <xoutput.h>
|
| 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 Fehler ausgeworfen More...
|
| |
| 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 werden kann, wird ein Fehler ausgeworfen More...
|
| |
| 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 werden kann, wird ein Fehler ausgeworfen More...
|
| |
| template<class T > |
| 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 werden kann, wird ein Fehler ausgeworfen More...
|
| |
| static const Format & | array () |
| | array lese internes Formatierungsobjekt More...
|
| |
|
| static const Format | latex { "table", "&", "\\\\\n", "tex" } |
| |
| static const Format | plot { "plot", ",", "\n", "csv" } |
| |
| static const Format | terminal { "terminal", "\t", "\n", "out" } |
| |
| static const Format | csv { "csv", ",", "\n", "csv" } |
| |
|
| std::ostream & | operator<< (std::ostream &os, const Format &fmt) |
| | operator << überladener Ausgabeoperator internes Formatierungsobjekt wird gesetzt. More...
|
| |
The Output struct Hilfsklasse zur Erzeugung von Ausgabeströmen zum Schreiben in Dateien.
Definition at line 14 of file xoutput.h.
◆ array()
| static const Format& nmx::Output::array |
( |
| ) |
|
|
inlinestatic |
array lese internes Formatierungsobjekt
- Returns
- Referens auf gespeichertes Formatierungsobjekt
Definition at line 118 of file xoutput.h.
◆ get_stream() [1/4]
| static std::ofstream nmx::Output::get_stream |
( |
const std::string & |
fname | ) |
|
|
inlinestatic |
get_output_stream Öffnen einer Ausgabedatei falls die Datei nicht geöffnet werden kann wird ein Fehler ausgeworfen
- Parameters
-
| fname | Name der Ausgabedatei |
- Returns
- Ausgabestrom
Definition at line 29 of file xoutput.h.
◆ get_stream() [2/4]
| static std::ofstream nmx::Output::get_stream |
( |
const std::string & |
dirname, |
|
|
const std::string & |
fname |
|
) |
| |
|
inlinestatic |
get_output_stream Öffnen einer Ausgabedatei in einem Unterverzeichnis, Falls die Datei nicht geöffnet werden kann, wird ein Fehler ausgeworfen
- Parameters
-
| dirname | Name des Unterverzeichnisses |
| fname | Name der Ausgabedatei |
- Returns
- Ausgabestrom
Definition at line 46 of file xoutput.h.
◆ get_stream() [3/4]
| static std::ofstream nmx::Output::get_stream |
( |
const std::string & |
dirname, |
|
|
const Format & |
fmt |
|
) |
| |
|
inlinestatic |
get_output_stream Öffnen einer Ausgabedatei in einem Unterverzeichnis. Falls die Datei nicht geöffnet werden kann, wird ein Fehler ausgeworfen
- Parameters
-
| dirname | Name des Unterverzeichnisses |
| fmt | Formatierungsanweisung für den Ausgabestrom, der Name der Datei erhält einen Zusatz abhängig von diesem Parameter |
- Returns
- Ausgabestrom
Definition at line 63 of file xoutput.h.
◆ get_stream() [4/4]
template<class T >
| static std::ofstream nmx::Output::get_stream |
( |
const std::string & |
dirname, |
|
|
const Format & |
fmt, |
|
|
const T & |
id |
|
) |
| |
|
inlinestatic |
get_output_stream Öffnen einer Ausgabedatei in einem Unterverzeichnis. Falls die Datei nicht geöffnet werden kann, wird ein Fehler ausgeworfen
- Parameters
-
| dirname | Name des Unterverzeichnisses oder der Datei |
| fmt | Formatierungsanweisung für den Ausgabestrom, der Name der Datei erhält einen Zusatz abhängig von diesem Parameter |
| id | Namenszusatz |
- Returns
- Ausgabestrom
Definition at line 85 of file xoutput.h.
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Format & |
fmt |
|
) |
| |
|
friend |
operator << überladener Ausgabeoperator internes Formatierungsobjekt wird gesetzt.
- Parameters
-
| os | Ausgabestrom |
| fmt | Formatierungsobjekt |
- Returns
- Referenz auf Ausgabestrom
Definition at line 128 of file xoutput.h.
◆ csv
| const Format nmx::Output::csv { "csv", ",", "\n", "csv" } |
|
inlinestatic |
◆ latex
| const Format nmx::Output::latex { "table", "&", "\\\\\n", "tex" } |
|
inlinestatic |
◆ plot
| const Format nmx::Output::plot { "plot", ",", "\n", "csv" } |
|
inlinestatic |
◆ terminal
| const Format nmx::Output::terminal { "terminal", "\t", "\n", "out" } |
|
inlinestatic |
The documentation for this class was generated from the following file: