Go to the documentation of this file.
36 const word& entryName,
37 const Type& defaultValue
40 Type result = defaultValue;
41 getProperty(entryName, result);
49 const word& entryName,
53 return getObjectProperty(
name(), entryName, value);
60 const word& entryName,
64 setObjectProperty(
name(), entryName, value);
71 const word& objectName,
72 const word& entryName,
73 const Type& defaultValue
76 Type result = defaultValue;
77 getObjectProperty(objectName, entryName, result);
85 const word& objectName,
86 const word& entryName,
92 if (stateDict.
found(objectName))
105 const word& objectName,
106 const word& entryName,
112 if (!stateDict.
found(objectName))
118 baseDict.
add(entryName, value,
true);
125 const word& entryName,
129 setObjectResult(
name(), entryName, value);
136 const word& objectName,
137 const word& entryName,
143 if (!stateDict.
found(resultsName_))
150 if (!resultsDict.
found(objectName))
159 if (!objectDict.
found(dictTypeName))
166 resultTypeDict.
add(entryName, value,
true);
173 const word& entryName,
174 const Type& defaultValue
177 return getObjectResult(
name(), entryName, defaultValue);
184 const word& objectName,
185 const word& entryName,
186 const Type& defaultValue
189 Type result = defaultValue;
190 (void)getObjectResult(objectName, entryName, result);
198 const word& objectName,
199 const word& entryName,
205 if (stateDict.
found(resultsName_))
209 if (resultsDict.
found(objectName))
215 if (objectDict.
found(dictTypeName))
218 objectDict.
subDict(dictTypeName);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from Foam::string.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
Type getProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property.
word name(const complex &c)
Return string representation of complex.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Traits class for primitives.
Type getObjectResult(const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve result from named object.
void setObjectResult(const word &objectName, const word &entryName, const Type &value)
Add result from named object.
void setObjectProperty(const word &objectName, const word &entryName, const Type &value)
Add generic property from named object.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
void setResult(const word &entryName, const Type &value)
Add result.
void setProperty(const word &entryName, const Type &value)
Add generic property.
Type getResult(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve result.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Type getObjectProperty(const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from named object.