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> |
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.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.