All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HSEP::Regexp Class Reference

Regular expression processing, conforming with POSIX extended regular expressions. More...

#include <Regexp.h>

+ Inheritance diagram for HSEP::Regexp:
+ Collaboration diagram for HSEP::Regexp:

Public Member Functions

 Regexp (string &pRegExpDefinition)
 Creates a Regexp instance based on the provided POSIX extended regular expression.
 
 Regexp (const char *pRegExpDefinition)
 Creates a Regexp instance based on the provided POSIX extended regular expression.
 
 ~Regexp ()
 
bool match (string pValue)
 Checks if the provided text match the internally stored POSIX extended regular expression.
 
string & text ()
 Returns the stored regular expression.
 
- Public Member Functions inherited from HSEP::HSEPObject
string & lastErrorRef ()
 Returns a reference to the last stored error message.
 
ErrorCode lastCode ()
 Returns the last stored code.
 
bool valid ()
 Permits to know if the object has a valid internal state.
 
string & typeRef ()
 Permits to know the type of this particular object.
 

Additional Inherited Members

- Protected Member Functions inherited from HSEP::HSEPObject
 HSEPObject (const char *pType)
 Constructor, providing the base for the state controlling instance.
 
virtual ~HSEPObject ()
 
void setLastError (string &pErrorMsgRef)
 Assigns an error message text to the last executed operation.
 
void setLastError (const string &pErrorMsgRef)
 Assigns an error message text to the last executed operation.
 
void setLastError (const char *pErrorMsg)
 Assigns an error message text to the last executed operation.
 
void setValid ()
 Defines that the object has a valid state.
 
void setInvalid ()
 Defines that the object has an invalid state.
 
void setLastCode (const ErrorCode pErrorCode)
 Defines the internal result code for the object.
 

Detailed Description

Regular expression processing, conforming with POSIX extended regular expressions.

Definition at line 34 of file Regexp.h.

Constructor & Destructor Documentation

HSEP::Regexp::Regexp ( string &  pRegExpDefinition)

Creates a Regexp instance based on the provided POSIX extended regular expression.

Parameters
pRegExpDefinition

Definition at line 112 of file Regexp.cpp.

HSEP::Regexp::Regexp ( const char *  pRegExpDefinition)

Creates a Regexp instance based on the provided POSIX extended regular expression.

Parameters
pRegExpDefinition

Definition at line 116 of file Regexp.cpp.

HSEP::Regexp::~Regexp ( )

Definition at line 120 of file Regexp.cpp.

Member Function Documentation

bool HSEP::Regexp::match ( string  pValue)

Checks if the provided text match the internally stored POSIX extended regular expression.

Parameters
pValueValue to be checked.
Returns
true if the provided value match the regular expression.
false if the provided value doesn't match the regular expression.

Definition at line 125 of file Regexp.cpp.

Referenced by HSEP::RegexpChecker::key(), and HSEP::RegexpChecker::match().

+ Here is the caller graph for this function:

string& HSEP::Regexp::text ( )
inline

Returns the stored regular expression.

Usually this is used for reference purposes.

Returns

Definition at line 75 of file Regexp.h.

Referenced by HSEP::RegexpChecker::key().

+ Here is the caller graph for this function:


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