|
ACF $AcfVersion:0$
|
Interface for consistency checking of a parameter set. More...
#include <IParamsSetValidator.h>
Public Types | |
| typedef QSet< QByteArray > | Ids |
Public Member Functions | |
| virtual Ids | GetSupportedTypeIds () const =0 |
| Get list of parameter type IDs which can be checked by the validator. | |
| virtual bool | IsParamsSetConsistent (const QByteArray &validationContextId, const IParamsSet ¶msSet, ilog::IMessageConsumer *validationMessagesConsumerPtr=NULL) const =0 |
| Return true if the parameter set is consistent, false otherwise. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Interface for consistency checking of a parameter set.
IParamsSetValidator provides validation functionality for parameter sets, ensuring that parameters meet required constraints and business rules before processing or persistence.
Validators can check:
Different validation contexts can have different rules:
Definition at line 106 of file IParamsSetValidator.h.
| typedef QSet<QByteArray> iprm::IParamsSetValidator::Ids |
Definition at line 109 of file IParamsSetValidator.h.
|
pure virtual |
Get list of parameter type IDs which can be checked by the validator.
Returns the set of parameter set type identifiers that this validator can validate. This allows routing different parameter set types to appropriate validators.
|
pure virtual |
Return true if the parameter set is consistent, false otherwise.
Validates a parameter set against constraints and business rules. Optionally, detailed validation messages can be collected through a message consumer.
| validationContextId | ID identifying the validation context. Different contexts may apply different validation rules (e.g., "save", "execute", "preview"). |
| paramsSet | Parameter set to be validated. |
| validationMessagesConsumerPtr | Optional consumer for validation messages. If provided, detailed error/warning messages will be sent to it. Can be NULL if messages aren't needed. |