Skip to content

Commit

Permalink
IndicatorBase: Adds missing setter for ENUM_INDICATOR_STATE_PROP
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Apr 24, 2024
1 parent 07a8183 commit d6bde70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions IndicatorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,14 @@ class IndicatorBase : public Chart {
Chart::Set<T>(_param, _value);
}

/**
* Sets an indicator's state property value.
*/
template <typename T>
void Set(STRUCT_ENUM(IndicatorState, ENUM_INDICATOR_STATE_PROP) _prop, T _value) {
istate.Set<T>(_prop, _value);
}

/**
* Sets indicator data source.
*/
Expand Down

0 comments on commit d6bde70

Please sign in to comment.