Abstract base class for a graph writer. More...
#include <graph.H>

Public Member Functions | |
| TypeName ("writer") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, writer, word,(),()) | |
| Declare run-time constructor selection table. | |
| writer ()=default | |
| Default construct. | |
| virtual | ~writer ()=default |
| Destructor. | |
| virtual word | ext () const =0 |
| The fileName extension for this graph format. | |
| virtual void | write (const graph &, Ostream &) const =0 |
| Write graph in appropriate format. | |
Static Public Member Functions | |
| static autoPtr< writer > | New (const word &writeFormat) |
| Return a reference to the selected writer. | |
Protected Member Functions | |
| void | writeXY (const scalarField &x, const scalarField &y, Ostream &) const |
|
default |
Default construct.
Referenced by declareRunTimeSelectionTable().

|
virtualdefault |
Destructor.
|
protected |
Definition at line 230 of file graph.C.
References Foam::endl(), forAll, os(), Foam::setw(), token::SPACE, graph::x(), and graph::y().
Referenced by gnuplotWriter::write(), and xmgraceWriter::write().


| TypeName | ( | "writer" | ) |
Runtime type information.
Declare run-time constructor selection table.
References writer().

|
static |
Return a reference to the selected writer.
Definition at line 202 of file graph.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and FatalErrorInLookup.
Referenced by graph::write(), and graph::write().


|
pure virtual |
The fileName extension for this graph format.
Implemented in gnuplotWriter, rawWriter, and xmgraceWriter.
Write graph in appropriate format.
Implemented in gnuplotWriter, rawWriter, and xmgraceWriter.
References graph::graph().
