• 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

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • ChangeValidatorSupport
  • 4.11.14

ChangeValidatorSupport Class

(ServerIO::ChangeValidatorSupport)

The ChangeValidatorSupport class has a list of IChangeValidators that is iterated on each value change in channel. More...

Header: #include <IO/ServerIO/ChangeValidatorSupport.h>
  • List of all members, including inherited members

Public Functions

ChangeValidatorSupport()
~ChangeValidatorSupport()
unsigned int GetCount()
void ProcessChangeValidators(T &newValue, const T oldValue)
void RegisterValidator(IChangeValidator *validator)
void UnregisterValidator(IChangeValidator *validator)

Detailed Description

The ChangeValidatorSupport class has a list of IChangeValidators that is iterated on each value change in channel.

The validators can block a value change when added. The channel takes the ownership of the provided pointer. The opposing method UnregisterValidator may be used to remove validator and revoke ownership.

See also IOServer, ServerIO, ServerIO::IChangeValidator, and ServerIO::DeltaValidatorSendTrigger.

Member Function Documentation

ChangeValidatorSupport::ChangeValidatorSupport()

Default constructs an instance of ChangeValidatorSupport.

ChangeValidatorSupport::~ChangeValidatorSupport()

Destroys the instance of ChangeValidatorSupport.

unsigned int ChangeValidatorSupport::GetCount()

Returns number of registered validators.

void ChangeValidatorSupport::ProcessChangeValidators(T &newValue, const T oldValue)

Iterates through all registered validators and calls the IChangeValidator's Validate() function, which may block a value change.

void ChangeValidatorSupport::RegisterValidator(IChangeValidator *validator)

validator is registered into a list holding IChangeValidator-pointers.

void ChangeValidatorSupport::UnregisterValidator(IChangeValidator *validator)

validator is removed from list holding IChangeValidator-pointers.

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

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

    © Copyright 2022 CDP Technologies. Privacy and cookie policy.

    Return to top