• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • CDP Linux
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • CustomMetricMath
  • 5.1.0

CustomMetricMath Class

A wrapper for custom metric math implementations defined in CDP. More...

Header: #include <CustomMetricMath>
Inherits: MetricMathBase and CDPBaseObject
  • List of all members, including inherited members

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.

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2026 CDP Technologies. Privacy and cookie policy.

Return to top