Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TecplotWriter Class Reference

#include <tecplotwriter.h>

Inheritance diagram for TecplotWriter:
Collaboration diagram for TecplotWriter:

Public Member Functions

 TecplotWriter ()
 Default constructor. More...
 
 TecplotWriter (string rFilename)
 Constructor. More...
 
 ~TecplotWriter ()
 Destructor. More...
 
void setOutputFilename (string rFilename)
 Set filename. More...
 
string getOutputFilename ()
 Get filename. More...
 
bool init ()
 Initialize writer. More...
 

Protected Attributes

string mFilename
 
ofstream mFileHandle
 

Detailed Description

Definition at line 33 of file tecplotwriter.h.

Constructor & Destructor Documentation

Default constructor.

Definition at line 11 of file tecplotwriter.cpp.

References mFilename.

11  {
12  mFilename = "";
13 }
string mFilename
Definition: tecplotwriter.h:72
TecplotWriter ( string  rFilename)

Constructor.

Parameters
rFilenameOutput filename

Definition at line 19 of file tecplotwriter.cpp.

References setOutputFilename().

19  {
20  setOutputFilename(rFilename);
21 }
void setOutputFilename(string rFilename)
Set filename.

Here is the call graph for this function:

Destructor.

Definition at line 26 of file tecplotwriter.cpp.

References mFileHandle.

26  {
27 
28  //Close the file handle
29  if(mFileHandle.is_open())
30  mFileHandle.close();
31 
32  return;
33 }
ofstream mFileHandle
Definition: tecplotwriter.h:74

Member Function Documentation

string getOutputFilename ( )

Get filename.

Returns
Output filename

Definition at line 47 of file tecplotwriter.cpp.

References mFilename.

47  {
48  return mFilename;
49 }
string mFilename
Definition: tecplotwriter.h:72
bool init ( )

Initialize writer.

Definition at line 54 of file tecplotwriter.cpp.

References mFileHandle, and mFilename.

54  {
55  mFileHandle.open(mFilename.c_str(), ofstream::out);
56  return mFileHandle.is_open();
57 }
string mFilename
Definition: tecplotwriter.h:72
ofstream mFileHandle
Definition: tecplotwriter.h:74
void setOutputFilename ( string  rFilename)

Set filename.

Parameters
rFilenameOutput filename

Definition at line 39 of file tecplotwriter.cpp.

References mFilename.

Referenced by TecplotWriter().

39  {
40  mFilename = rFilename;
41 }
string mFilename
Definition: tecplotwriter.h:72

Here is the caller graph for this function:

Member Data Documentation

string mFilename
protected

Definition at line 72 of file tecplotwriter.h.

Referenced by getOutputFilename(), init(), setOutputFilename(), and TecplotWriter().


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