The Format class Formatierte Ausgabe von Arrays.
More...
#include <xfmt.h>
|
| | Format (const std::string &sep, const std::string &lend, std::streamsize prec=3) |
| | Format Konstruktor. More...
|
| |
| | Format (const std::string &name, const std::string &sep, const std::string &lend, const std::string &ext, std::streamsize prec=3) |
| | Format Konstruktor. More...
|
| |
| auto | operator() () const |
| | operator () Ausgabe von Trennzeichen,Zeichen am Ende jeder Zeile More...
|
| |
| template<class T > |
| void | write_line (std::ostream &ofs, const T &crow) const |
| | write_line Daten in einem Array werden in einer Zeile ausgegeben More...
|
| |
| template<class X , class... Y> |
| void | as_rows (std::ostream &ofs, const X &x, const Y &... y) const |
| | as_rows beliebige Anzahl von Arrays werden als Reihen ausgegeben More...
|
| |
| template<class X , class... Y> |
| void | as_columns (std::ostream &ofs, const X &x, const Y &... y) const |
| | as_columns beliebige Anzahl von Arrays werden als Spalten einer Tabelle dargestellt More...
|
| |
| template<class T > |
| void | as_columns (std::ostream &ofs, const T &data) const |
| | as_columns Array von Arrays wird als Tabelle ausgegeben. More...
|
| |
| void | set_defaults (std::ostream &ofs) const |
| | set_defaults Formatierung der Zahlen More...
|
| |
| const std::string & | sep () const |
| |
| const std::string & | lend () const |
| |
| const std::string & | name () const |
| |
| const std::string & | ext () const |
| |
The Format class Formatierte Ausgabe von Arrays.
Definition at line 10 of file xfmt.h.
◆ Format() [1/2]
| nmx::Format::Format |
( |
const std::string & |
sep, |
|
|
const std::string & |
lend, |
|
|
std::streamsize |
prec = 3 |
|
) |
| |
|
inline |
Format Konstruktor.
- Parameters
-
| sep | Trennzeichen |
| lend | Zeichen am Ende einer Reihe |
| prec | Anzahl der Nachkommastellen |
Definition at line 25 of file xfmt.h.
◆ Format() [2/2]
| nmx::Format::Format |
( |
const std::string & |
name, |
|
|
const std::string & |
sep, |
|
|
const std::string & |
lend, |
|
|
const std::string & |
ext, |
|
|
std::streamsize |
prec = 3 |
|
) |
| |
|
inline |
Format Konstruktor.
- Parameters
-
| name | Dateiname |
| sep | Trennzeichen |
| lend | Zeichen am Ende einer Reihe |
| ext | Dateisuffix |
| prec | Anzahl der Nachkommastellen |
Definition at line 42 of file xfmt.h.
◆ as_columns() [1/2]
template<class X , class... Y>
| void nmx::Format::as_columns |
( |
std::ostream & |
ofs, |
|
|
const X & |
x, |
|
|
const Y &... |
y |
|
) |
| const |
|
inline |
as_columns beliebige Anzahl von Arrays werden als Spalten einer Tabelle dargestellt
- Parameters
-
Definition at line 100 of file xfmt.h.
◆ as_columns() [2/2]
template<class T >
| void nmx::Format::as_columns |
( |
std::ostream & |
ofs, |
|
|
const T & |
data |
|
) |
| const |
|
inline |
as_columns Array von Arrays wird als Tabelle ausgegeben.
- Parameters
-
| ofs | Ausgabestrom |
| data | Array von Arrays |
Definition at line 118 of file xfmt.h.
◆ as_rows()
template<class X , class... Y>
| void nmx::Format::as_rows |
( |
std::ostream & |
ofs, |
|
|
const X & |
x, |
|
|
const Y &... |
y |
|
) |
| const |
|
inline |
as_rows beliebige Anzahl von Arrays werden als Reihen ausgegeben
- Parameters
-
Definition at line 81 of file xfmt.h.
◆ ext()
| const std::string& nmx::Format::ext |
( |
| ) |
const |
|
inline |
◆ lend()
| const std::string& nmx::Format::lend |
( |
| ) |
const |
|
inline |
◆ name()
| const std::string& nmx::Format::name |
( |
| ) |
const |
|
inline |
◆ operator()()
| auto nmx::Format::operator() |
( |
| ) |
const |
|
inline |
operator () Ausgabe von Trennzeichen,Zeichen am Ende jeder Zeile
Definition at line 57 of file xfmt.h.
◆ sep()
| const std::string& nmx::Format::sep |
( |
| ) |
const |
|
inline |
◆ set_defaults()
| void nmx::Format::set_defaults |
( |
std::ostream & |
ofs | ) |
const |
|
inline |
set_defaults Formatierung der Zahlen
- Parameters
-
Definition at line 133 of file xfmt.h.
◆ write_line()
template<class T >
| void nmx::Format::write_line |
( |
std::ostream & |
ofs, |
|
|
const T & |
crow |
|
) |
| const |
|
inline |
write_line Daten in einem Array werden in einer Zeile ausgegeben
- Parameters
-
| ofs | Ausgabestrom |
| crow | Array |
Definition at line 66 of file xfmt.h.
◆ precision
| std::streamsize nmx::Format::precision = 3 |
The documentation for this class was generated from the following file: