Boolean validator checking if attribute value is a boolean value or can be treated as that.
You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.
class CDbValidatorBoolean :public CDbValidator
{
public:
// IDbValidator methods
bool Validate(CDbModel *model, IDbAttribute *attribute, String &error) override;
CDbValidatorBoolean();
CDbValidatorBoolean *setStrict(const bool &value); // Set whether to check attribute data type as well (should be boolean if strict check is active)
static ReleasablePtr<CDbValidatorBoolean> Create(); // Helper static method to create validator in form used in model rule adding methods
};
Namespace: | nitisa |
Include: | Nitisa/Db/DbValidatorBoolean.h |