Abstract base class for a graph writer. More...
Public Member Functions | |
TypeName ("writer") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, writer, word,(),()) | |
Declare run-time constructor selection table. More... | |
writer ()=default | |
Default construct. More... | |
virtual | ~writer ()=default |
Destructor. More... | |
virtual word | ext () const =0 |
The fileName extension for this graph format. More... | |
virtual void | write (const graph &, Ostream &) const =0 |
Write graph in appropriate format. More... | |
Static Public Member Functions | |
static autoPtr< writer > | New (const word &writeFormat) |
Return a reference to the selected writer. More... | |
Protected Member Functions | |
void | writeXY (const scalarField &x, const scalarField &y, Ostream &) const |
|
default |
Default construct.
|
virtualdefault |
Destructor.
|
protected |
Definition at line 231 of file graph.C.
References Foam::endl(), forAll, os(), Foam::setw(), token::SPACE, x, and y.
TypeName | ( | "writer" | ) |
Runtime type information.
Declare run-time constructor selection table.
|
static |
Return a reference to the selected writer.
Definition at line 203 of file graph.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and FatalErrorInLookup.
|
pure virtual |
The fileName extension for this graph format.
Implemented in xmgraceWriter, gnuplotWriter, and rawWriter.
Write graph in appropriate format.
Implemented in xmgraceWriter, gnuplotWriter, and rawWriter.