• 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

  • Framework - CDP Core
  • TranslatorChannel
  • 5.0.0

TranslatorChannel Class

(ServerIO::Translator::TranslatorChannel)

The TranslatorChannel<T> class is inherited from TranslatorChannelBase class. TranslatorChannel composes ICDPChannel pointer and can be used for threadsafe and valuemapped channel value access in Translators. During construction overrides given ICDPChannel internal data pointer (syncValue). More...

Header: #include <TranslatorChannel>
Inherits: TranslatorChannelBase
  • List of all members, including inherited members

Public Functions

TranslatorChannel(const std::string &type, ServerIO::ICDPChannel *iCDPChannel)
void SetValue(T val)
T Value() const

Reimplemented Public Functions

virtual bool HasMappedValue() const override
virtual std::string MappedValue() const override
virtual bool SetMappedValue(const std::string &stringVal) override
virtual void SetValue(const std::string &stringVal) override
virtual std::string StringValue() const override
virtual std::string Type() const override
  • 17 public functions inherited from ServerIO::Translator::TranslatorChannelBase

Additional Inherited Members

  • 1 static public member inherited from ServerIO::Translator::TranslatorChannelBase

Detailed Description

The TranslatorChannel<T> class is inherited from TranslatorChannelBase class. TranslatorChannel composes ICDPChannel pointer and can be used for threadsafe and valuemapped channel value access in Translators. During construction overrides given ICDPChannel internal data pointer (syncValue).

Member Function Documentation

TranslatorChannel::TranslatorChannel(const std::string &type, ServerIO::ICDPChannel *iCDPChannel)

Default constructs an instance of TranslatorChannel.

[override virtual] bool TranslatorChannel::HasMappedValue() const

[override virtual] std::string TranslatorChannel::MappedValue() const

[override virtual] bool TranslatorChannel::SetMappedValue(const std::string &stringVal)

[override virtual] void TranslatorChannel::SetValue(const std::string &stringVal)

void TranslatorChannel::SetValue(T val)

[override virtual] std::string TranslatorChannel::StringValue() const

[override virtual] std::string TranslatorChannel::Type() const

T TranslatorChannel::Value() const

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