Public Member Functions | |
IOfileHeader (const objectFile &objf, const repository *owner=nullptr) | |
const word & | objectName () const |
const word & | objectType () const |
const repository * | owner () const |
fileSystem | path () const |
bool | headerOk (bool silent=false) |
bool | implyRead () const |
bool | implyWrite () const |
bool | fileExist () const |
bool | readIfPresent () const |
bool | writeHeader (iOstream &os, const word &typeName) const |
bool | writeHeader (iOstream &os) const |
bool | readHeader (iIstream &is, bool silent=false) |
bool | writeBanner (iOstream &os) const |
bool | writeSeparator (iOstream &os) const |
![]() | |
objectFile (const word &name) | |
objectFile (const word &name, const fileSystem &localPath, const readFlag &rf=READ_NEVER, const writeFlag &wf=WRITE_NEVER, bool rwHeader=true) | |
objectFile (const objectFile &src)=default | |
objectFile (objectFile &&src)=default | |
objectFile & | operator= (const objectFile &rhs)=default |
objectFile & | operator= (objectFile &&rhs)=default |
virtual | ~objectFile ()=default |
virtual word | name () const |
virtual fileSystem | localPath () const |
readFlag | rFlag () const |
writeFlag | wFlag () const |
bool | isReadAlways () const |
bool | isReadNever () const |
bool | isReadIfPresent () const |
bool | isWriteAlways () const |
bool | isWriteNever () const |
bool | readWriteHeader () const |
Protected Member Functions | |
uniquePtr< iFstream > | inStream () const |
uniquePtr< oFstream > | outStream () const |
Protected Attributes | |
const repository * | owner_ = nullptr |
word | objectName_ |
word | objectType_ |
![]() | |
word | name_ |
readFlag | rFlag_ |
writeFlag | wFlag_ |
fileSystem | localPath_ |
bool | readWriteHeader_ = true |
Additional Inherited Members | |
![]() | |
enum | readFlag { READ_ALWAYS, READ_NEVER, READ_IF_PRESENT } |
enum | writeFlag { WRITE_ALWAYS, WRITE_NEVER } |
Definition at line 35 of file IOfileHeader.hpp.
IOfileHeader | ( | const objectFile & | objf, |
const repository * | owner = nullptr |
||
) |
Definition at line 46 of file IOfileHeader.cpp.
|
protected |
Definition at line 24 of file IOfileHeader.cpp.
References IOfileHeader::fileExist(), and IOfileHeader::path().
|
protected |
Definition at line 32 of file IOfileHeader.cpp.
|
inline |
Definition at line 66 of file IOfileHeader.hpp.
References IOfileHeader::objectName_.
Referenced by pFlow::PFtoVTK::convertIntTypesPointField(), pFlow::PFtoVTK::convertRealTypePointField(), pFlow::PFtoVTK::convertRealx3TypePointField(), and pFlow::TSFtoVTK::convertRealx3TypetriSurfaceField().
|
inline |
Definition at line 72 of file IOfileHeader.hpp.
References IOfileHeader::objectType_.
Referenced by pFlow::PFtoVTK::convertIntTypesPointField(), pFlow::PFtoVTK::convertRealTypePointField(), pFlow::PFtoVTK::convertRealx3TypePointField(), pFlow::TSFtoVTK::convertRealx3TypetriSurfaceField(), and pFlow::geomObjectToVTK().
|
inline |
Definition at line 78 of file IOfileHeader.hpp.
References IOfileHeader::owner_.
pFlow::fileSystem path | ( | ) | const |
Definition at line 55 of file IOfileHeader.cpp.
References fileSystem::path().
Referenced by IOfileHeader::inStream().
bool headerOk | ( | bool | silent = false | ) |
Definition at line 71 of file IOfileHeader.cpp.
References pFlow::endl(), and warningInFunction.
Referenced by pFlow::PFtoVTK::convertTimeFolderPointFields(), pFlow::PFtoVTK::convertTimeFolderPointFieldsSelected(), pFlow::TSFtoVTK::convertTimeFolderTriSurfaceFields(), and readFromTimeFolder::fieldExists().
bool implyRead | ( | ) | const |
Definition at line 100 of file IOfileHeader.cpp.
bool implyWrite | ( | ) | const |
Definition at line 106 of file IOfileHeader.cpp.
bool fileExist | ( | ) | const |
Definition at line 111 of file IOfileHeader.cpp.
Referenced by IOfileHeader::inStream().
bool readIfPresent | ( | ) | const |
Definition at line 116 of file IOfileHeader.cpp.
Definition at line 122 of file IOfileHeader.cpp.
References IOstream::fatalCheck(), and iOstream::writeWordEntry().
bool writeHeader | ( | iOstream & | os | ) | const |
Definition at line 137 of file IOfileHeader.cpp.
bool readHeader | ( | iIstream & | is, |
bool | silent = false |
||
) |
Definition at line 142 of file IOfileHeader.cpp.
References pFlow::endl(), iIstream::findTokenAndNextSilent(), IOstream::name(), and warningInFunction.
bool writeBanner | ( | iOstream & | os | ) | const |
Definition at line 170 of file IOfileHeader.cpp.
bool writeSeparator | ( | iOstream & | os | ) | const |
Definition at line 181 of file IOfileHeader.cpp.
|
protected |
Definition at line 44 of file IOfileHeader.hpp.
Referenced by IOfileHeader::owner().
|
protected |
Definition at line 47 of file IOfileHeader.hpp.
Referenced by IOfileHeader::objectName().
|
protected |
Definition at line 50 of file IOfileHeader.hpp.
Referenced by IOfileHeader::objectType().