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);
75 Pout<<
"rawIOField : object:" << io.
name()
76 <<
" haveFile:" << haveFile
103 if (!isPtr || !isPtr->
good())
108 <<
"Trying to read raw field" <<
endl
126 Pout<<
"rawIOField : object:" << io.
name()
127 <<
" size:" << this->size() <<
endl;
138 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,...
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
OSstream wrapped stdout (std::cout) with parallel prefix.
rawIOField(const rawIOField &)=default
Default copy construct.
bool isWord() const noexcept
Token is word-variant (WORD, DIRECTIVE)
bool good() const noexcept
True if next operation might succeed.
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 good() const noexcept
True if the managed pointer is non-null.
OBJstream os(runTime.globalPath()/outputName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
readOption readOpt() const noexcept
The read option.
const word & name() const noexcept
Return name.
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.
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.
fileName objectPath() const
The complete path + object name.
bool headerOk()
Read and check header info.