• 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
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • GUI - CDP Widgets
  • CDPBaseCom

CDPBaseCom Class

The CDPBaseCom class is not a widget, but a base class for communication with CDP. More...

Header: #include <CDPBaseCom>
Inherited By:

CDPBaseBar, CDPBaseButtonMsg, CDPBaseCheckBox, CDPBaseComboBox, CDPBaseComObj, CDPBaseLabel, CDPBaseLineEdit, CDPBaseLoadingIndicator, CDPBaseMeter, CDPBasePictureSequence, CDPBaseSlider, CDPBaseSpinBox, CDPBaseStackedWidget, CDPBaseToggleButton, and CDPComWidget

  • List of all members, including inherited members

Public Functions

CDPBaseCom(void)
virtual ~CDPBaseCom(void)
void Connect(std::string strRemoteObjectName, std::string localSignalName = std::string( "" )) override
std::string GetRemoteName() override
double GetValueDouble() override
void SetValueDouble(double newValue) override
QString cdpPropertyName()
virtual void emitValueChanged(double value)
virtual const QString &noConnectionText() const
double offlineValue() const
bool offlineValueEnabled()
QString offlineValueString() const
double scalingFactor()
virtual void setOfflineValue(double value)
virtual void setOfflineValueEnabled(bool enabled)
virtual void setOfflineValueString(const QString &value)
virtual void setScalingFactor(double value)
virtual bool setValue(QString value, bool bScale)
virtual void setValue(double value)

Static Public Members

QString FindFullTargetRouting(QWidget *parentIterator)
const char *FullTargetPropertyName()

Protected Functions

void ConnectionChanged(bool bConnected) override
void OnValueChanged(double dNewValue) override
void PropertyChanged(std::string strPropertyName, std::string strNewPropertyValue) override
void setCdpPropertyName(QString prop)

Detailed Description

The CDPBaseCom class is not a widget, but a base class for communication with CDP.

Member Function Documentation

CDPBaseCom::CDPBaseCom(void)

Default constructs an instance of CDPBaseCom.

[virtual] CDPBaseCom::~CDPBaseCom(void)

Destroys the instance of CDPBaseCom. The destructor is virtual.

void CDPBaseCom::Connect(std::string strRemoteObjectName, std::string localSignalName = std::string( "" ))

[protected] void CDPBaseCom::ConnectionChanged(bool bConnected)

[static] QString CDPBaseCom::FindFullTargetRouting(QWidget *parentIterator)

[static] const char *CDPBaseCom::FullTargetPropertyName()

std::string CDPBaseCom::GetRemoteName()

double CDPBaseCom::GetValueDouble()

[protected] void CDPBaseCom::OnValueChanged(double dNewValue)

[protected] void CDPBaseCom::PropertyChanged(std::string strPropertyName, std::string strNewPropertyValue)

void CDPBaseCom::SetValueDouble(double newValue)

QString CDPBaseCom::cdpPropertyName()

See also setCdpPropertyName().

[virtual] void CDPBaseCom::emitValueChanged(double value)

[virtual] const QString &CDPBaseCom::noConnectionText() const

double CDPBaseCom::offlineValue() const

See also setOfflineValue().

bool CDPBaseCom::offlineValueEnabled()

See also setOfflineValueEnabled().

QString CDPBaseCom::offlineValueString() const

See also setOfflineValueString().

double CDPBaseCom::scalingFactor()

See also setScalingFactor().

[protected] void CDPBaseCom::setCdpPropertyName(QString prop)

See also cdpPropertyName().

[virtual] void CDPBaseCom::setOfflineValue(double value)

See also offlineValue().

[virtual] void CDPBaseCom::setOfflineValueEnabled(bool enabled)

See also offlineValueEnabled().

[virtual] void CDPBaseCom::setOfflineValueString(const QString &value)

See also offlineValueString().

[virtual] void CDPBaseCom::setScalingFactor(double value)

See also scalingFactor().

[virtual] bool CDPBaseCom::setValue(QString value, bool bScale)

[virtual] void CDPBaseCom::setValue(double value)

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 2025 CDP Technologies. Privacy and cookie policy.

Return to top