<< Return to Main Index

 < Return to Class Index

Class

class : public CRgChange

This class is added to  CRgProcessor class' internal list of listeners using the  CRgProcessor::AddListener function. Listeners will be notified when a match takes place. You will have to derive from this class to listen to the events. Usually you will only override OnMatch. Please refer to the deals sample for typical usage.

Defined in: rglisten.h

See Also

CRgProcessor

Class Members

virtual void OnMatchStart()

This method will be called when the processor starts the token scanning process.

virtual void OnMatch(RGTOKENID tokenid, CRgString::const_iterator citbegin, CRgString::const_iterator citend, DWORD dwOffset, const CRgMatch& actualMatch, CRgProcessor* pProcess)

This method will be called when the processor finds a match. Please refer to the deals sample for typical usage.

virtual void OnMatchEnd()

This method will be called when the scanning process ends.

virtual void OnChangeState(const CRgState* pOldState, const CRgState* pNewState, CRgString::const_iterator citbegin, CRgString::const_iterator citend, CRgProcessor* pProcess)

This method will be called when the state used for scanning changes as a result of a match