FreeFOAM The Cross-Platform CFD Toolkit
graph::writer Class Reference

Abstract base class for a graph writer. More...

#include <src/OpenFOAM/graph/graph.H>


Detailed Description

Abstract base class for a graph writer.

Definition at line 185 of file graph.H.

+ Inheritance diagram for graph::writer:

List of all members.

Public Member Functions

 TypeName ("writer")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, writer, word,(),())
 Declare run-time constructor selection table.
 writer ()
 Construct null.
virtual ~writer ()
virtual const wordext () const =0
 Return the appropriate fileName extension.
virtual void write (const graph &, Ostream &) const =0
 Write graph in appropriate format.

Static Public Member Functions

static autoPtr< writerNew (const word &writeFormat)
 Return a reference to the selected writer.

Protected Member Functions

void writeXY (const scalarField &x, const scalarField &y, Ostream &) const

Constructor & Destructor Documentation

writer ( )
inline

Construct null.

Definition at line 225 of file graph.H.

virtual ~writer ( )
inlinevirtual

Definition at line 231 of file graph.H.


Member Function Documentation

void writeXY ( const scalarField x,
const scalarField y,
Ostream os 
) const
protected

Definition at line 179 of file graph.C.

References Foam::endl(), forAll, Foam::setw(), and token::SPACE.

Referenced by gnuplotGraph::write(), and xmgrGraph::write().

TypeName ( "writer"  )

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
writer  ,
word  ,
()  ,
()   
)

Declare run-time constructor selection table.

autoPtr< graph::writer > New ( const word writeFormat)
static

Return a reference to the selected writer.

Definition at line 148 of file graph.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorIn.

Referenced by graph::write().

virtual const word& ext ( ) const
pure virtual

Return the appropriate fileName extension.

for this graph format

Implemented in xmgrGraph, gnuplotGraph, jplotGraph, and rawGraph.

virtual void write ( const graph ,
Ostream  
) const
pure virtual

Write graph in appropriate format.

Implemented in xmgrGraph, gnuplotGraph, jplotGraph, and rawGraph.


The documentation for this class was generated from the following files: