Go to the documentation of this file.
34 bool pFlow::vtkFile::vtkFile::writeHeader()
37 if(!oStream_)
return false;
39 oStream_() <<
"# vtk DataFile Version 3.0" <<
endl;
41 oStream_() <<
"vtk file for time : " << time_ <<
endl;
43 oStream_() <<
"BINARY" <<
endl;
45 oStream_() <<
"ASCII" <<
endl;
47 if( oStream_().fail() )
return false;
69 if(!openStream(!append))
72 " error in creating vtkFile "<<fileName()<<
endl;
82 return dirPath_ +fName;
#define fatalExit
Fatal exit.
virtual fileSystem fileName() const
vtkFile(const fileSystem dir, const word &bName, real time, bool bnry, bool append=false)
virtual bool writeHeader()
iOstream & endl(iOstream &os)
Add newline and flush stream.
Manages file pathes, manupulate and combines them.
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
bool openStream(bool wHeader)
word int322Word(const int32 &v)
Convert int32 to word.
uniquePtr< oFstream > oStream_