Token Analyzer. More...
#include <ganalyzer.h>
Inheritance diagram for GAnalyzer:
Public Member Functions | |
GAnalyzer (GSession *session, GPlugInFactory *fac) | |
virtual void | TreatTokens (GDocAnalyze *analyzer)=0 |
virtual | ~GAnalyzer (void) |
Public Member Functions inherited from GPlugIn | |
GPlugIn (GSession *session, GPlugInFactory *fac) | |
virtual void | ApplyConfig (void) |
void | InsertParam (R::RParam *param) |
template<class T > | |
T * | FindParam (const R::RString &name) |
R::RCursor< R::RParam > | GetParams (const R::RString &cat=R::RString::Null) |
void | GetCategories (R::RContainer< R::RString, true, false > &cats) |
virtual void | Init (void) |
virtual void | CreateConfig (void) |
virtual void | Reset (void) |
GPlugInFactory * | GetFactory (void) const |
int | Compare (const GPlugIn &plugin) const |
int | Compare (const R::RString &plugin) const |
R::RString | GetName (void) const |
R::RString | GetDesc (void) const |
GSession * | GetSession (void) const |
virtual void | Done (void) |
virtual | ~GPlugIn (void) |
Additional Inherited Members | |
Protected Attributes inherited from GPlugIn | |
GPlugInFactory * | Factory |
GSession * | Session |
size_t | Id |
Detailed Description
Token Analyzer.
The GAnalyzer provides a class to treat a set of tokens extracted from the document currently analyzed. An analyzer can ask to treat each token or each occurrence (depending on their type).
See the documentation related to GPlugIn for more general information.
Constructor & Destructor Documentation
GAnalyzer | ( | GSession * | session, |
GPlugInFactory * | fac | ||
) |
Construct the analyzer.
- Parameters
-
session Session. fac Factory.
|
virtual |
Destructor.
Member Function Documentation
|
pure virtual |
Treat the tokens extracted from the document. In fact, the analyzer can treat each token or each single occurrence.
- Parameters
-
analyzer Analyzer.