Go to the documentation of this file.
40 warnNoRereading<rawIOField<Type>>();
49 bool haveFile =
false;
60 if (isPtr && isPtr->good())
66 const token firstToken(is);
78 Pout<<
"rawIOField : object:" << io.
name()
79 <<
" haveFile:" << haveFile
106 if (!isPtr || !isPtr->good())
128 Pout<<
"rawIOField : object:" << io.
name()
129 <<
" size:" << this->size() <<
endl;
140 os << static_cast<const Field<Type>&>(*this);
int debug
Static debugging option.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const
Return name.
A class for handling file names.
static constexpr const zero Zero
Global zero (0)
Generic input stream using a standard (STL) stream.
const fileOperation & fileHandler()
Get current file handler.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds an item read from Istream.
prefixOSstream Pout
An Ostream wrapper for parallel output to std::cout.
rawIOField(const rawIOField &)=default
Default copy construct.
Generic templated field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool writeData(Ostream &os) const
Pure virtual writeData function.
bool isWord() const
Token is WORD or DIRECTIVE word.
const word & wordToken() const
Return const reference to the word contents.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
void close()
Close Istream.
readOption readOpt() const
The read option.
virtual fileName filePath() const
Return complete path + object name if the file exists.
static const word null
An empty word.
void clear() noexcept
Same as reset(nullptr)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Istream & readStream(const word &, const bool valid=true)
Return Istream and check object type against that given.
bool good() const
Return true if next operation might succeed.
fileName objectPath() const
The complete path + object name.
bool headerOk()
Read and check header info.