131 word headerClassName_;
152 bool registerObject_;
171 void setBad(
const string&);
269 return headerClassName_;
279 const string&
note()
const 293 return registerObject_;
299 return registerObject_;
387 template<
class Stream>
388 static inline Stream&
writeBanner(Stream& os,
bool noHint=
false);
391 template<
class Stream>
395 template<
class Stream>
409 return objState_ ==
GOOD;
414 return objState_ ==
BAD;
435 Ostream& operator<<(Ostream& os, const InfoProxy<IOobject>& ip);
fileName objectPath() const
Return complete path + object name.
writeOption
Enumeration defining the write options.
static bool fileNameComponents(const fileName &path, fileName &instance, fileName &local, word &name)
Split path into instance, local, name components.
A class for handling file names.
static Stream & writeBanner(Stream &os, bool noHint=false)
Write the standard OpenFOAM file/dictionary banner.
const objectRegistry & db() const
Return the local objectRegistry.
void operator=(const IOobject &)
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
virtual void rename(const word &newName)
Rename.
bool writeHeader(Ostream &) const
Write header.
objectState
Enumeration defining the valid states of an IOobject.
virtual ~IOobject()
Destructor.
word member() const
Return member (name without the extension)
readOption
Enumeration defining the read options.
const word & headerClassName() const
Return name of the class name read from header.
writeOption writeOpt() const
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
fileName path() const
Return complete path.
bool readHeader(Istream &)
Read header.
string & note()
Return non-constant access to the optional note.
fileName filePath() const
Return complete path + object name if the file exists.
const fileName & caseName() const
A class for handling words, derived from string.
const Time & time() const
Return time.
static word groupName(Name name, const word &group)
InfoProxy< IOobject > info() const
Return info proxy.
Foam::autoPtr< IOobject > clone() const
Clone.
void setBad(const string &)
Set the object state to bad.
const fileName & local() const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Istream * objectStream()
Construct and return an IFstream for the object.
static Stream & writeEndDivider(Stream &os)
Write the standard end file divider.
A helper class for outputting values to Ostream.
readOption readOpt() const
TypeName("IOobject")
Runtime type information.
bool headerOk()
Read and check header info.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const fileName & rootPath() const
Registry of regIOobjects.
word group() const
Return group (extension part of name)
bool & registerObject()
Register object created from this IOobject with registry if true.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const fileName & instance() const
const word & name() const
Return name.