36 const word& entryName,
37 const Type& defaultValue
40 Type result = defaultValue;
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,
90 return stateDict().getObjectProperty(objectName, entryName, value);
97 const word& objectName,
98 const word& entryName,
102 stateDict().setObjectProperty(objectName, entryName, value);
109 const word& entryName,
113 setObjectResult(
name(), entryName, value);
120 const word& objectName,
121 const word& entryName,
125 stateDict().setObjectResult(objectName, entryName, value);
132 const word& entryName,
133 const Type& defaultValue
136 return getObjectResult(
name(), entryName, defaultValue);
143 const word& objectName,
144 const word& entryName,
145 const Type& defaultValue
148 Type result = defaultValue;
149 (void)getObjectResult(objectName, entryName, result);
157 const word& objectName,
158 const word& entryName,
162 return stateDict().getObjectResult(objectName, entryName, value);
Type getProperty(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
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 setProperty(const word &entryName, const Type &value)
Add generic property.
Type getResult(const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve result.
Type getObjectProperty(const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const
Retrieve generic property from named object.