40 warnNoRereading<rawIOField<Type>>();
49 bool haveFile =
false;
60 if (isPtr && isPtr->
good())
66 const token firstToken(is);
76 <<
" haveFile:" << haveFile
103 if (!isPtr || !isPtr->
good())
108 <<
"Trying to read raw field" <<
endl
127 <<
" size:" << this->
size() <<
endl;
138 os << static_cast<const Field<Type>&>(*this);
Generic templated field type.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
readOption readOpt() const noexcept
The read option.
fileName objectPath() const
The complete path + object name.
bool good() const noexcept
True if next operation might succeed.
Generic input stream using a standard (STL) stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label size() const noexcept
The number of elements in the UList.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void clear() noexcept
Same as reset(nullptr)
bool good() const noexcept
True if the managed pointer is non-null.
A class for handling file names.
A traits class, which is primarily used for primitives.
Like IOField but falls back to raw IFstream if no header found. Optionally reads average value....
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
void close()
Close Istream.
Istream & readStream(const word &, const bool valid=true)
Return Istream and check object type against that given.
virtual fileName filePath() const
Return complete path + object name if the file exists.
bool headerOk()
Read and check header info. Does not check the headerClassName.
A token holds an item read from Istream.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
const fileOperation & fileHandler()
Get current file handler.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A non-counting (dummy) refCount.