CustomMetricMath Class
A wrapper for custom metric math implementations defined in CDP. More...
| Header: | #include <CustomMetricMath> |
| Inherits: | MetricMathBase and CDPBaseObject |
Public Types
| class | Prototype |
Public Functions
| CustomMetricMath() | |
| ~CustomMetricMath() override | |
| std::shared_ptr<const Prototype> | GetPrototype() const |
Reimplemented Public Functions
| virtual void | Configure(XMLPrimitive *element) override |
| virtual void | Create(const char *shortName, CDPBaseObject *parent) override |
| virtual void | Destroy() override |
- 5 public functions inherited from MetricMathBase
- 50 public functions inherited from CDPBaseObject
- 5 public functions inherited from IMetricMath
- 30 public functions inherited from CDP::StudioAPI::CDPNode
- 25 public functions inherited from CDP::StudioAPI::ICDPNode
Static Public Members
| std::unique_ptr<IMetricMath> | Instantiate(const Prototype &proto, CDPBaseObject *owner) |
- 1 static public member inherited from CDPBaseObject
Additional Inherited Members
- 10 protected functions inherited from MetricMathBase
- 1 protected function inherited from CDP::StudioAPI::CDPNode
- 8 protected variables inherited from CDPBaseObject
Detailed Description
A wrapper for custom metric math implementations defined in CDP.
This class allows users to define custom metric math logic within the CDP framework. It handles the instantiation and configuration of the underlying math engine.
Member Function Documentation
CustomMetricMath::CustomMetricMath()
Default constructs an instance of CustomMetricMath.
CustomMetricMath::~CustomMetricMath()
Destroys the instance of CustomMetricMath.
[override virtual] void CustomMetricMath::Configure(XMLPrimitive *element)
Reimplemented from CDPBaseObject::Configure().
[override virtual] void CustomMetricMath::Create(const char *shortName, CDPBaseObject *parent)
Reimplemented from CDPBaseObject::Create().
[override virtual] void CustomMetricMath::Destroy()
Reimplemented from CDPBaseObject::Destroy().
std::shared_ptr<const Prototype> CustomMetricMath::GetPrototype() const
Returns the prototype for this custom metric math.
[static] std::unique_ptr<IMetricMath> CustomMetricMath::Instantiate(const Prototype &proto, CDPBaseObject *owner)
Instantiates a new metric math engine from the given prototype. proto The prototype to instantiate from. owner The owner of the new instance.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.