#include <sampling/csvSetWriter.H>
Definition at line 49 of file csvSetWriter.H.
Public Member Functions | |
TypeName ("csv") | |
Runtime type information.
| |
csvSetWriter () | |
Construct null.
| |
virtual | ~csvSetWriter () |
Destructor.
| |
virtual fileName | getFileName (const coordSet &, const wordList &) const |
Generate file name with correct extension.
| |
virtual void | write (const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const |
General entry point for writing.
| |
virtual void | write (const bool writeTracks, const PtrList< coordSet > &, const wordList &valueSetNames, const List< List< Field< Type > > > &, Ostream &) const |
General entry point for writing of multiple coordSets.
| |
Protected Member Functions | |
virtual void | writeSeparator (Ostream &) const |
Writes a separator. Used by write functions.
|
csvSetWriter | ( | ) |
Construct null.
Definition at line 34 of file csvSetWriter.C.
~csvSetWriter | ( | ) | [virtual]
|
Destructor.
Definition at line 43 of file csvSetWriter.C.
void writeSeparator | ( | Ostream & | os ) | const [protected, virtual]
|
Writes a separator. Used by write functions.
Reimplemented from writer< Type >.
Definition at line 120 of file csvSetWriter.C.
References token::COMMA.
TypeName | ( | "csv" | ) |
Runtime type information.
Foam::fileName getFileName | ( | const coordSet & | , |
const wordList & | |||
) | const [virtual]
|
Generate file name with correct extension.
Implements writer< Type >.
Definition at line 51 of file csvSetWriter.C.
void write | ( | const coordSet & | , |
const wordList & | , | ||
const List< const Field< Type > * > & | , | ||
Ostream & | |||
) | const [virtual]
|
General entry point for writing.
The data is organized in a set of point with one or more values per point
Implements writer< Type >.
Definition at line 62 of file csvSetWriter.C.
References forAll.
void write | ( | const bool | writeTracks, |
const PtrList< coordSet > & | , | ||
const wordList & | valueSetNames, | ||
const List< List< Field< Type > > > & | , | ||
Ostream & | |||
) | const [virtual]
|
General entry point for writing of multiple coordSets.
Each coordSet (track) has same data variables. The data is per variable, per track, per point of track. If writeTracks adds connecting lines (wherever applicable)
Implements writer< Type >.
Definition at line 85 of file csvSetWriter.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, Foam::nl, and List< T >::size().