Token Analyzer. More...

#include <ganalyzer.h>

Inheritance diagram for GAnalyzer:
[legend]

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::RParamGetParams (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)
 
GPlugInFactoryGetFactory (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
 
GSessionGetSession (void) const
 
virtual void Done (void)
 
virtual ~GPlugIn (void)
 

Additional Inherited Members

- Protected Attributes inherited from GPlugIn
GPlugInFactoryFactory
 
GSessionSession
 
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
sessionSession.
facFactory.
virtual ~GAnalyzer ( void  )
virtual

Destructor.

Member Function Documentation

virtual void TreatTokens ( GDocAnalyze analyzer)
pure virtual

Treat the tokens extracted from the document. In fact, the analyzer can treat each token or each single occurrence.

Parameters
analyzerAnalyzer.