limal::ValuePosixRECheck Class Reference

Posix regex value check. More...

#include <ValuePosixRECheck.hpp>

Inheritance diagram for limal::ValuePosixRECheck:

limal::ValueCheckBase List of all members.

Public Member Functions

 ValuePosixRECheck (const blocxx::String &regex, bool icase=false)
virtual bool isValid (const blocxx::String &value) const
virtual blocxx::String explain (const blocxx::String &value) const

Private Attributes

blocxx::PosixRegEx m_reg

Detailed Description

Posix regex value check.

The ValuePosixRECheck implements a simple posix regex match check that can be used in ValueCheck.


Constructor & Destructor Documentation

limal::ValuePosixRECheck::ValuePosixRECheck const blocxx::String &  regex,
bool  icase = false
 

Constructor compiling a extended regular expression used to validate a value.

The match is case sensitive unless the icase flag is set.

Parameters:
regex Extended regular expression string.
icase Match case insensitive.
Exceptions:
blocxx::RegExCompileException on invalid pattern


Member Function Documentation

virtual blocxx::String limal::ValuePosixRECheck::explain const blocxx::String &  value  )  const [virtual]
 

Return a string showing the regex matching the specified string value.

Parameters:
value A string value.
Returns:
A string showing the check.

Implements limal::ValueCheckBase.

virtual bool limal::ValuePosixRECheck::isValid const blocxx::String &  value  )  const [virtual]
 

Return whether the regular expression matches the specified string value.

Parameters:
value A string value.
Returns:
true, if the regex matches the value, false on no match.
Exceptions:
blocxx::RegExExecuteException on execute failure.

Implements limal::ValueCheckBase.


Member Data Documentation

blocxx::PosixRegEx limal::ValuePosixRECheck::m_reg [private]
 


The documentation for this class was generated from the following file:
Generated on Tue May 2 09:52:00 2006 for limal by  doxygen 1.4.6