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 () | |
Construct null. More... | |
virtual | ~writer () |
Destructor. More... | |
virtual const word & | ext () const =0 |
Return the appropriate fileName extension. 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 |
|
inlinevirtual |
Destructor.
Definition at line 229 of file graph.H.
References format(), Foam::name(), graph::operator<<, graph::wordify(), graph::write(), and graph::writeTable().
|
protected |
Definition at line 193 of file graph.C.
References Foam::endl(), forAll, Foam::setw(), and token::SPACE.
Referenced by graph::writer::New().
TypeName | ( | "writer" | ) |
Runtime type information.
Declare run-time constructor selection table.
|
static |
Return a reference to the selected writer.
Definition at line 164 of file graph.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and graph::writer::writeXY().
Referenced by graph::write(), and graph::y().
|
pure virtual |
Return the appropriate fileName extension.
for this graph format
Implemented in xmgrGraph, gnuplotGraph, jplotGraph, and rawGraph.
Write graph in appropriate format.
Implemented in xmgrGraph, gnuplotGraph, jplotGraph, and rawGraph.