• 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
  • ISendTrigger
  • 4.11.14

ISendTrigger Class

(ServerIO::ISendTrigger)

Interface class used for trig sending, e.g. when a routed property has an edge (change from true to false or from false to true). ISendOnPropertyChange is a typedef for ISendTrigger. More...

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

Public Functions

virtual ~ISendTrigger()
virtual void FlagForSend(const std::string &arguments)
virtual void FlagForSend() = 0

Detailed Description

Interface class used for trig sending, e.g. when a routed property has an edge (change from true to false or from false to true). ISendOnPropertyChange is a typedef for ISendTrigger.

See also IOServer, ServerIO, ServerIO::ISendOnPropertyChange, and ServerIO::IWakeFunctor.

Member Function Documentation

[virtual] ISendTrigger::~ISendTrigger()

Destroys the instance of ISendTrigger. The destructor is virtual.

[virtual] void ISendTrigger::FlagForSend(const std::string &arguments)

The FlagForSend(const std::string &arguments) function should be called when some data/property has changed or some other event has occured and change/message based triggering of packet should occur and there are values in packet that need to be overrided.

The arguments format is semicolon separated key value pairs: "Channel3=10;Channel6=20". The parsing of arguments string can be done with

The IOServer implementation should store the arguments string in thread safe manner until the packet is being sent and use the content of arguments to override any packet named fields defined by the argument string before clearing the stored string.

The default implementation forwards call to FlagForSend().

See also CDPUtils::SplitParameters.

[pure virtual] void ISendTrigger::FlagForSend()

The FlagForSend() function should be called when some data/property has changed or some other event has occured and change/message based triggering of packet should occur.

The Implementation should set up a flag in the IOServer packet in a thread safe manner that is checked during send code. In addition this is the callback to use for kicking CDPEvent if one is used to wait. on IOServer tx/rx loop. See IOServer::RegisterSendOnChange() and IOServer::DeregisterSendOnChange().

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