www.cemf.ir
vtkFile Class Reference
+ Collaboration diagram for vtkFile:

Public Member Functions

 vtkFile (const fileSystem dir, const word &bName, real time, bool bnry, bool append=false)
 
virtual ~vtkFile ()=default
 
oFstreamoperator() ()
 
 operator bool () const
 
bool operator! () const
 
bool binary () const
 
virtual fileSystem fileName () const
 

Protected Member Functions

bool openStream (bool wHeader)
 
virtual bool writeHeader ()
 

Protected Attributes

uniquePtr< oFstreamoStream_ = nullptr
 
bool binary_ = false
 
bool append_ =false
 
real time_ = 0.0
 
fileSystem dirPath_
 
word baseName_
 

Detailed Description

Definition at line 33 of file vtkFile.hpp.

Constructor & Destructor Documentation

◆ vtkFile()

vtkFile ( const fileSystem  dir,
const word bName,
real  time,
bool  bnry,
bool  append = false 
)

Definition at line 54 of file vtkFile.cpp.

References pFlow::endl(), fatalErrorInFunction, and fatalExit.

+ Here is the call graph for this function:

◆ ~vtkFile()

virtual ~vtkFile ( )
virtualdefault

Member Function Documentation

◆ openStream()

bool openStream ( bool  wHeader)
protected

Definition at line 24 of file vtkFile.cpp.

References vtkFile::append_, vtkFile::binary_, vtkFile::fileName(), vtkFile::oStream_, and vtkFile::writeHeader().

Referenced by vtkFile::operator()().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeHeader()

virtual bool writeHeader ( )
protectedvirtual

Referenced by vtkFile::openStream().

+ Here is the caller graph for this function:

◆ operator()()

oFstream& operator() ( )
inline

Definition at line 64 of file vtkFile.hpp.

References vtkFile::append_, pFlow::endl(), fatalErrorInFunction, fatalExit, vtkFile::fileName(), vtkFile::openStream(), and vtkFile::oStream_.

+ Here is the call graph for this function:

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 78 of file vtkFile.hpp.

References vtkFile::oStream_.

◆ operator!()

bool operator! ( ) const
inline

Definition at line 85 of file vtkFile.hpp.

References vtkFile::oStream_.

◆ binary()

bool binary ( ) const
inline

Definition at line 94 of file vtkFile.hpp.

References vtkFile::binary_.

◆ fileName()

Member Data Documentation

◆ oStream_

uniquePtr<oFstream> oStream_ = nullptr
protected

◆ binary_

bool binary_ = false
protected

Definition at line 39 of file vtkFile.hpp.

Referenced by vtkFile::binary(), and vtkFile::openStream().

◆ append_

bool append_ =false
protected

Definition at line 41 of file vtkFile.hpp.

Referenced by vtkFile::openStream(), and vtkFile::operator()().

◆ time_

real time_ = 0.0
protected

Definition at line 43 of file vtkFile.hpp.

◆ dirPath_

fileSystem dirPath_
protected

Definition at line 45 of file vtkFile.hpp.

◆ baseName_

word baseName_
protected

Definition at line 47 of file vtkFile.hpp.


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