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