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