36 auto osPtr = makeUnique<oFstream>(path(), outFileBinary());
40 auto outPrecision = owner_->outFilePrecision();
41 osPtr->precision(outPrecision);
63 f = owner_->
path()/localPath();
76 return owner_->outFileBinary();
83 return toUpper(fileFormat_) ==
"BINARY";
92 " the file "<< path() <<
" does not exist. \n";
99 if(
auto ptrIS = inStream(); ptrIS )
101 return readHeader( ptrIS(), silent );
107 "could not open file " << path() <<
endl;
117 if (isReadAlways())
return true;
118 return readIfPresent();
123 return isWriteAlways();
128 return path().exist();
133 return fileExist() && isReadIfPresent();
150 fileFormat =
"Binary";
152 fileFormat =
"ASCII";
163 return writeHeader(os, objectType_);
174 "cannot find/error in reading objectName in file " <<
185 "cannot find/error in reading objectType in file "<<
197 "cannot find/error in reading fileFormat in file "<<
209 "/* -------------------------------*- C++ -*---------------------------------- *\\ \n"<<
210 "| phasicFlow File | \n"<<
211 "| copyright: www.cemf.ir | \n"<<
212 "\\* ------------------------------------------------------------------------- */ \n \n";
220 "// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // \n \n";