FunctionObject class is used to specify the function setting when using a function for the condition setting.
The class can be called from FunctionObjectFactory class.
.
More...
Public Member Functions | |
| void | AddFunction (FunctionObject *function) |
| Adds a new function to the composite function. More... | |
| FunctionObject * | GetFunction (int i) |
| Returns the type of the function in the composite function. More... | |
| Variant | GetParameters () |
| Returns the property name of the function as a string list. More... | |
| String | GetParameterTable () |
| Returns the property name and value of the function as a string. More... | |
| String | GetPropertyHelp (String &propName) |
| Returns the help of the properties as a string. More... | |
| String | GetType () |
| Returns the type of the function as a string. More... | |
| double | GetValue (String &propName) |
| Returns the value of properties as a real number. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumFunctions () |
| functions for composite function More... | |
| void | RemoveFunction (int index) |
| Deletes a function from the composite function. More... | |
| void | SetFlagByName (String &propName, String &scriptKeyName) |
| Specifies the value of flag property for the specified name. More... | |
| void | SetTable (String array &list) |
| Specifies a definition table for each higher harmonics. More... | |
| void | SetTableProperty (String &propName, DataSet *set) |
| Specifies a table for the specified properties. More... | |
| void | SetValue (String &propName, Variant &value) |
| Returns the value of properties as a real number. More... | |
| void | SetValueWithUnit (String &propName, Variant &value, String &unitName) |
| Specifies the value of the specified property. More... | |
FunctionObject class is used to specify the function setting when using a function for the condition setting.
The class can be called from FunctionObjectFactory class.
.
Example of calling the class object:
For information about the property name that can be specified for the argument of a function, see Settings for Functions .
| void FunctionObject::AddFunction | ( | FunctionObject * | function | ) |
Adds a new function to the composite function.
| function | FunctionObject object |
| FunctionObject * FunctionObject::GetFunction | ( | int | i | ) |
Returns the type of the function in the composite function.
| i | Function ID |
| Variant FunctionObject::GetParameters | ( | ) |
Returns the property name of the function as a string list.
| String FunctionObject::GetParameterTable | ( | ) |
Returns the property name and value of the function as a string.
| String FunctionObject::GetPropertyHelp | ( | String & | propName | ) |
Returns the help of the properties as a string.
| propName | Property name |
| String FunctionObject::GetType | ( | ) |
Returns the type of the function as a string.
| double FunctionObject::GetValue | ( | String & | propName | ) |
Returns the value of properties as a real number.
| Argument | name |
| bool FunctionObject::IsValid | ( | ) |
Returns True if an object is valid.
| int FunctionObject::NumFunctions | ( | ) |
functions for composite function
Returns the number of functions in the composite function.
| void FunctionObject::RemoveFunction | ( | int | index | ) |
Deletes a function from the composite function.
| index | Function ID |
| void FunctionObject::SetFlagByName | ( | String & | propName, |
| String & | scriptKeyName | ||
| ) |
Specifies the value of flag property for the specified name.
| propName | Property name |
| scriptKeyName | Flag name |
| void FunctionObject::SetTable | ( | String array & | list | ) |
Specifies a definition table for each higher harmonics.
| list | Multidimensional array |
| void FunctionObject::SetTableProperty | ( | String & | propName, |
| DataSet * | set | ||
| ) |
Specifies a table for the specified properties.
| propName | Property name |
| set | DataSet (table) |
| void FunctionObject::SetValue | ( | String & | propName, |
| Variant & | value | ||
| ) |
Returns the value of properties as a real number.
| propName | Property name |
| value | Property value |
For information about the condition type name that can be specified as propName, see Function Settings .
| void FunctionObject::SetValueWithUnit | ( | String & | propName, |
| Variant & | value, | ||
| String & | unitName | ||
| ) |
Specifies the value of the specified property.
| propName | Property name |
| value | Property value |
| unitName | Unit |
For information about the condition type name that can be specified as propName , see Function Settings .