The builder interface of Properties. Allows for construction of Properties through the build
method.
More...
Inherits ObjectPtr< IPropertyBuilder >.
The builder interface of Properties. Allows for construction of Properties through the build
method.
Contains setters for the Property fields. The setters take as parameters openDAQ objects, even if the value must always evaluate to, for example, a boolean. This allows for EvalValue objects to be set instead of a static value.
The EvalValue objects can evaluate to Boolean, String, List, Unit, and Property types. and can thus be used when such types are expected from the getters.
The Property can be built by calling the build
method.
|
daq::PropertyPtr | build () const |
| Builds and returns a Property using the currently set values of the Builder. More...
|
|
PropertyBuilderPtr | setValueType (daq::CoreType type) const |
| Sets the Value type of the Property. Values written to the corresponding Property value must be of the same type. More...
|
|
daq::CoreType | getValueType () const |
| Gets the Value type of the Property. More...
|
|
PropertyBuilderPtr | setName (const daq::StringPtr &name) const |
| Sets the Name of the Property. The names of Properties in a Property object must be unique. The name is used as the key to the corresponding Property value when getting/setting the value. More...
|
|
daq::StringPtr | getName () const |
| Gets the Name of the Property. More...
|
|
PropertyBuilderPtr | setDescription (const daq::StringPtr &description) const |
| Sets the short string Description of the Property. More...
|
|
daq::StringPtr | getDescription () const |
| Gets the short string Description of the Property. More...
|
|
PropertyBuilderPtr | setUnit (const daq::UnitPtr &unit) const |
| Sets the Unit of the Property. More...
|
|
daq::UnitPtr | getUnit () const |
| Gets the Unit of the Property. More...
|
|
PropertyBuilderPtr | setMinValue (const daq::NumberPtr &min) const |
| Sets the Minimum value of the Property. Available only if the Value type is ctInt or ctFloat . More...
|
|
daq::NumberPtr | getMinValue () const |
| Gets the Minimum value of the Property. Available only if the Value type is ctInt or ctFloat . More...
|
|
PropertyBuilderPtr | setMaxValue (const daq::NumberPtr &max) const |
| Sets the Maximum value of the Property. Available only if the Value type is ctInt or ctFloat . More...
|
|
daq::NumberPtr | getMaxValue () const |
| Gets the Maximum value of the Property. Available only if the Value type is ctInt or ctFloat . More...
|
|
PropertyBuilderPtr | setDefaultValue (const daq::BaseObjectPtr &value) const |
| Sets the Default value of the Property. The Default value must always be configured for a Property to be in a valid state. Exceptions are Function/Procedure and Reference properties. The function will freeze default value if it is freezable. More...
|
|
daq::BaseObjectPtr | getDefaultValue () const |
| Gets the Default value of the Property. More...
|
|
PropertyBuilderPtr | setSuggestedValues (const daq::ListPtr< daq::IBaseObject > &values) const |
| Sets the list of Suggested values. Contains values that are the optimal settings for the corresponding Property value. These values, however, are not enforced when setting a new Property value. More...
|
|
daq::ListPtr< daq::IBaseObject > | getSuggestedValues () const |
| Gets the list of Suggested values. Contains values that are the optimal gettings for the corresponding Property value. These values, however, are not enforced when getting a new Property value. More...
|
|
PropertyBuilderPtr | setVisible (const daq::BooleanPtr &visible) const |
| Used to determine whether the property is visible or not. More...
|
|
daq::BooleanPtr | getVisible () const |
| Used to determine whether the property is visible or not. More...
|
|
PropertyBuilderPtr | setReadOnly (const daq::BooleanPtr &readOnly) const |
| Used to determine whether the Property is a read-only property or not. More...
|
|
daq::BooleanPtr | getReadOnly () const |
| Used to determine whether the Property is a read-only property or not. More...
|
|
PropertyBuilderPtr | setSelectionValues (const daq::BaseObjectPtr &values) const |
| Sets the list or dictionary of selection values. If the list/dictionary is not empty, the property is a Selection property, and must have the Value type ctInt . More...
|
|
daq::BaseObjectPtr | getSelectionValues () const |
| Gets the list or dictionary of selection values. More...
|
|
PropertyBuilderPtr | setReferencedProperty (const daq::EvalValuePtr &propertyEval) const |
| Sets the referenced property. If set, all getters except for the Name , Referenced property , and Is referenced getters will return the value of the Referenced property . More...
|
|
daq::EvalValuePtr | getReferencedProperty () const |
| Gets the referenced property. More...
|
|
PropertyBuilderPtr | setValidator (const daq::ValidatorPtr &validator) const |
| Sets the validator of the Property. More...
|
|
daq::ValidatorPtr | getValidator () const |
| Gets the validator of the Property. More...
|
|
PropertyBuilderPtr | setCoercer (const daq::CoercerPtr &coercer) const |
| Sets the coercer of the Property. More...
|
|
daq::CoercerPtr | getCoercer () const |
| Gets the coercer of the Property. More...
|
|
PropertyBuilderPtr | setCallableInfo (const daq::CallableInfoPtr &callable) const |
| Sets the Callable information objects of the Property that specifies the argument and return types of the callable object stored as the Property value. More...
|
|
daq::CallableInfoPtr | getCallableInfo () const |
| Gets the Callable information objects of the Property that specifies the argument and return types of the callable object stored as the Property value. More...
|
|
PropertyBuilderPtr | setOnPropertyValueWrite (const daq::Event< daq::PropertyObjectPtr, PropertyValueEventArgsPtr > &event) const |
| Sets a custom on-write event. Used mostly when cloning properties. More...
|
|
daq::Event< daq::PropertyObjectPtr, daq::PropertyValueEventArgsPtr > | getOnPropertyValueWrite () const |
| Gets a custom on-write event. Used mostly when cloning properties. More...
|
|
PropertyBuilderPtr | setOnPropertyValueRead (const daq::Event< daq::PropertyObjectPtr, PropertyValueEventArgsPtr > &event) const |
| Sets a custom on-read event. Used mostly when cloning properties. More...
|
|
daq::Event< daq::PropertyObjectPtr, daq::PropertyValueEventArgsPtr > | getOnPropertyValueRead () const |
| Gets a custom on-read event. Used mostly when cloning properties. More...
|
|