39 if (isReadRequired() || (isReadOptional() && headerOk()))
55 if (isReadRequired() || (isReadOptional() && headerOk()))
75 <<
"NO_READ must be set if specifying size" <<
nl 86 if (isReadRequired() || (isReadOptional() && headerOk()))
91 PtrList<T>::readIstream(readStream(typeName), INew<T>());
106 PtrList<T>::transfer(content);
108 if (isReadRequired() || (isReadOptional() && headerOk()))
113 PtrList<T>::readIstream(readStream(typeName), INew<T>());
124 IOobject rio(
io, IOobjectOption::NO_REGISTER);
125 if (rio.readOpt() == IOobjectOption::MUST_READ_IF_MODIFIED)
127 rio.readOpt(IOobjectOption::MUST_READ);
130 IOPtrList<T> reader(rio);
141 return (
os << *
this).good();
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
void operator=(const IOPtrList< T > &rhs)
Copy assignment of entries.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
bool writeData(Ostream &os) const
Pure virtual writeData function.
static PtrList< T > readContents(const IOobject &io)
Read and return contents. The IOobject will not be registered.
A PtrList of objects of type <T> with automated input and output.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
A helper class when constructing from an Istream or dictionary.
IOPtrList(const IOPtrList &)=default
Default copy construct.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...