#include <ValueCheck.hpp>
Inheritance diagram for limal::ValueCheckBase:

Public Member Functions | |
| virtual | ~ValueCheckBase () |
| virtual bool | isValid (const blocxx::String &value) const =0 |
| virtual blocxx::String | explain (const blocxx::String &value) const =0 |
Protected Member Functions | |
| ValueCheckBase () | |
Private Member Functions | |
| ValueCheckBase (const ValueCheckBase &) | |
| ValueCheckBase & | operator= (const ValueCheckBase &) |
Private Attributes | |
| blocxx::RefCount | m_rcnt |
Friends | |
| class | ValueCheck |
The ValueCheckBase class, is a abstract base class, allowing to implement a single check on a string value.
A check derived from this class can be combined in ValueCheck class to expressions.
|
|
Destructor. |
|
|
Default constructor. |
|
|
Copy constructor, private. Use the default constructor to implement a copy constructor in your derived class. |
|
|
Returns a string explaining / showing the check.
For example, if your check implements the evaluation whether the value (e.g. return blocxx::Format("MyCheck('%1' < 5)", value);
The resulting string will be
Implemented in limal::ValueCheck, limal::ValueIntCheck, limal::ValuePerlRECheck, and limal::ValuePosixRECheck. |
|
|
Evaluates a check for the specified string value parameter to a boolean or throws an exception on failure.
For example, if you want a check that evaluates whether the value (e.g. return (value.toInt() < 5);
The blocxx toInt() method may throw an string conversion exception.
Implemented in limal::ValueCheck, limal::ValueIntCheck, limal::ValuePerlRECheck, and limal::ValuePosixRECheck. |
|
|
Copy operator, private. |
|
|
Permit the ValueCheck class the access to the reference counter. |
|
|
The atomic reference counter variable. |
1.4.6