Go to the documentation of this file.
40 #ifndef functionObjectState_H
41 #define functionObjectState_H
138 const word& entryName,
154 const word& objectName,
155 const word& entryName,
163 const word& objectName,
164 const word& entryName,
172 const word& objectName,
173 const word& entryName,
184 const word& entryName,
192 const word& objectName,
193 const word& entryName,
201 const word& entryName,
209 const word& objectName,
210 const word& entryName,
218 const word& objectName,
219 const word& entryName,
229 const word& objectName,
230 const word& entryName
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from string.
Type getProperty(const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve generic property.
Base class for function objects, adding functionality to read/write state information (data required ...
virtual ~functionObjectState()
Destructor.
bool setActive()
Set the active status by querying objectRegistry type.
word objectResultType(const word &objectName, const word &entryName) const
Return the type of result.
word resultType(const word &entryName) const
Retrieve the result type.
Registry of regIOobjects.
void setProperty(const word &entryName, const Type &value)
Add generic property.
void setObjectResult(const word &objectName, const word &entryName, const Type &value)
Add result from named object.
functionObjectState(const functionObjectState &)
Disallow default bitwise copy construct.
Type getResult(const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve result.
const objectRegistry & obr_
Reference to the database.
void setResult(const word &entryName, const Type &value)
Add result.
void setObjectProperty(const word &objectName, const word &entryName, const Type &value)
Add generic property from named object.
bool active() const
Return the active flag.
void operator=(const functionObjectState &)
Disallow default bitwise assignment.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Type getObjectResult(const word &objectName, const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve result from named object.
bool active_
Flag to indicate whether the object is active.
static const word resultsName_
Name of the results dictionary.
IOdictionary & stateDict_
Reference to the state dictionary.
const word name_
Name of model.
Traits class for primitives.
dictionary & propertyDict()
Return access to the property dictionary.
Type getObjectProperty(const word &objectName, const word &entryName, const Type &defaultValue=pTraits< Type >::zero) const
Retrieve generic property from named object.
bool foundProperty(const word &entryName) const
Return true if the property exists.
List< word > objectResultEntries() const
Retrieve the result entries.
const IOdictionary & stateDict() const
Return access to the state dictionary.
const word & name() const
Return the name.