Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
graph::writer Class Referenceabstract

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

Inheritance diagram for graph::writer:
Inheritance graph
[legend]

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 wordext () 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< writerNew (const word &writeFormat)
 Return a reference to the selected writer. More...
 

Protected Member Functions

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

Detailed Description

Abstract base class for a graph writer.

Definition at line 184 of file graph.H.

Constructor & Destructor Documentation

writer ( )
inline

Construct null.

Definition at line 224 of file graph.H.

virtual ~writer ( )
inlinevirtual

Destructor.

Definition at line 229 of file graph.H.

References format(), Foam::name(), graph::operator<<, path(), graph::wordify(), graph::write(), and graph::writeTable().

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 197 of file graph.C.

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

Referenced by graph::writer::New().

Here is the call graph for this function:

Here is the caller graph for this function:

TypeName ( "writer"  )

Runtime type information.

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

Declare run-time constructor selection table.

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

Return a reference to the selected writer.

Definition at line 164 of file graph.C.

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

Referenced by graph::write(), and graph::y().

Here is the call graph for this function:

Here is the caller graph for this function:

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: