YGP::IRegularExpression Class Reference

Base-class for any regular expression. More...

Inherited by YGP::FileRegularExpr, and YGP::RegularExpression.

List of all members.

Public Member Functions

bool matches (const char *pCompare)
virtual int checkIntegrity () const

Protected Member Functions

 IRegularExpression (const char *pExpression)
virtual ~IRegularExpression ()
IRegularExpressionoperator= (const char *pExpr)
const char * getExpression () const
virtual bool compare (const char *pAktRegExp, const char *pCompare)=0


Detailed Description

Base-class for any regular expression.

Provides interface for other regular-expression-like classes.

Note:
The pExpression-parameter is stored as is (and not copied); so take care it is valid during the life-time of the object.

Constructor & Destructor Documentation

YGP::IRegularExpression::IRegularExpression ( const char *  pExpression  )  [inline, protected]

Constructor; sets the regular expression.

virtual YGP::IRegularExpression::~IRegularExpression (  )  [inline, protected, virtual]

Destructor.


Member Function Documentation

virtual int YGP::IRegularExpression::checkIntegrity (  )  const [inline, virtual]

Checks the integrity of the object.

Reimplemented in YGP::RegularExpression, and YGP::FileRegularExpr.

virtual bool YGP::IRegularExpression::compare ( const char *  pAktRegExp,
const char *  pCompare 
) [protected, pure virtual]

Method to compare (a part of) the regular expression with some text.

Implemented in YGP::RegularExpression, and YGP::FileRegularExpr.

const char* YGP::IRegularExpression::getExpression (  )  const [inline, protected]

Returns the regular expression.

bool YGP::IRegularExpression::matches ( const char *  pCompare  )  [inline]

Checks, if the regular expression matches the passed text.

Parameters:
pCompare Pointer to text to match

IRegularExpression& YGP::IRegularExpression::operator= ( const char *  pExpr  )  [inline, protected]

Assignment operator; sets the regular expression.

Reimplemented in YGP::RegularExpression, and YGP::FileRegularExpr.


The documentation for this class was generated from the following file:

YGP Version 0.9.31 - Generated on Wed Nov 18 11:25:28 2009 by doxygen 1.5.8