57 "fileModificationSkew",
59 Foam::regIOobject::fileModificationSkew
68 fileCheckTypesNames.read
72 "fileModificationChecking" 109 "fileModificationChecking" 123 ownedByRegistry_(false),
145 ownedByRegistry_(false),
146 watchIndex_(rio.watchIndex_),
147 eventNo_(
db().getEvent()),
158 ownedByRegistry_(false),
160 eventNo_(
db().getEvent()),
163 if (registerCopy && rio.registered_)
180 ownedByRegistry_(
false),
182 eventNo_(
db().getEvent()),
200 ownedByRegistry_(
false),
202 eventNo_(
db().getEvent()),
216 if (objectRegistry::debug)
218 Info<<
"Destroying regIOobject called " <<
name()
219 <<
" of type " <<
type()
220 <<
" in directory " <<
path()
232 if (!ownedByRegistry_)
253 &&
time().runTimeModifiable()
256 if (watchIndex_ != -1)
260 <<
" already watched with index " << watchIndex_
283 <<
"failed to register object " <<
objectPath()
284 <<
" the name already exists in the objectRegistry" <<
endl 291 <<
"failed to register object " <<
objectPath()
292 <<
" the name already exists in the objectRegistry" 308 if (watchIndex_ != -1)
423 void Foam::regIOobject::operator=(
const IOobject& io)
Abstract base class for registered object with I/O. Used in debug symbol registration.
fileName objectPath() const
Return complete path + object name.
A class for handling file names.
addfileModificationCheckingToOpt(const char *name)
const objectRegistry & db() const
Return the local objectRegistry.
void operator=(const IOobject &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void readData(Foam::Istream &is)
Read.
void setUpToDate()
Set up to date (obviously)
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.
fileCheckTypes
Types of communications.
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
int optimisationSwitch(const char *name, const int defaultValue=0)
Lookup optimisation switch or add default value.
label eventNo() const
Event number at last update.
bool upToDate(const regIOobject &) const
Return true if up-to-date with respect to given object.
Initialise the NamedEnum HashTable from the static list of names.
bool removeWatch(const label) const
Remove watch on a file (using handle)
registerOptSwitch("fileModificationSkew", int, Foam::regIOobject::fileModificationSkew)
regIOobject(const IOobject &, const bool isTime=false)
Construct from IOobject. Optional flag for if IOobject is the.
fileName path() const
Return complete path.
static fileCheckTypes fileModificationChecking
fileName filePath() const
Return complete path + object name if the file exists.
A class for handling words, derived from string.
const Time & time() const
Return time.
const fileName & local() const
errorManip< error > abort(error &err)
bool checkIn(regIOobject &) const
Add an regIOobject to registry.
bool checkOut(regIOobject &) const
Remove an regIOobject from registry.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool checkOut()
Remove object from registry.
label getEvent() const
Return new event number.
addfileModificationCheckingToOpt addfileModificationCheckingToOpt_("fileModificationChecking")
defineTypeNameAndDebug(combustionModel, 0)
virtual void rename(const word &newName)
Rename.
word name(const complex &)
Return a string representation of a complex.
static bool masterOnlyReading
To flag master-only reading of objects.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define WarningInFunction
Report a warning using Foam::Warning.
List< Key > sortedToc() const
Return the table of contents as a sorted list.
virtual void writeData(Foam::Ostream &os) const
Write.
readOption readOpt() const
static int fileModificationSkew
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
static const NamedEnum< fileCheckTypes, 4 > fileCheckTypesNames
dictionary & optimisationSwitches()
The OptimisationSwitches sub-dictionary in the central controlDict.
virtual ~addfileModificationCheckingToOpt()
void addOptimisationObject(const char *name, simpleRegIOobject *obj)
Register optimisation switch read/write object.
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
Enum read(Istream &) const
Read a word from Istream and return the corresponding.
bool checkIn()
Add object to registry.
label addWatch(const fileName &) const
Add watching of a file. Returns handle.
const word & name() const
Return name.
virtual ~regIOobject()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.