DynGenPar
Dynamic Generalized Parser
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
DynGenPar::Action Class Referenceabstract

interface for parser actions More...

Public Member Functions

virtual ~Action ()
 
virtual void execute (const ActionInfo &info)=0
 
virtual int lookaheadTokens () const
 the number of tokens to look ahead before deciding to execute the action More...
 
virtual void writeExternal (QDataStream &stream) const
 implementation of the QDataStream operator<< More...
 

Static Public Member Functions

static QDataStream & constructAndRead (QDataStream &stream, Action *&data)
 implementation of the QDataStream operator>> More...
 

Static Protected Member Functions

static void registerDeserializer (const QString &name, ActionDeserializer *deserializer)
 

Detailed Description

interface for parser actions

Definition at line 433 of file dyngenpar.h.

Constructor & Destructor Documentation

◆ ~Action()

virtual DynGenPar::Action::~Action ( )
inlinevirtual

Definition at line 442 of file dyngenpar.h.

Member Function Documentation

◆ constructAndRead()

static QDataStream& DynGenPar::Action::constructAndRead ( QDataStream &  stream,
Action *&  data 
)
inlinestatic

implementation of the QDataStream operator>>

Definition at line 454 of file dyngenpar.h.

◆ execute()

virtual void DynGenPar::Action::execute ( const ActionInfo info)
pure virtual

◆ lookaheadTokens()

virtual int DynGenPar::Action::lookaheadTokens ( ) const
inlinevirtual

the number of tokens to look ahead before deciding to execute the action

defaults to 0, can be overridden by subclasses

Definition at line 447 of file dyngenpar.h.

◆ registerDeserializer()

static void DynGenPar::Action::registerDeserializer ( const QString &  name,
ActionDeserializer deserializer 
)
inlinestaticprotected

Definition at line 437 of file dyngenpar.h.

◆ writeExternal()

virtual void DynGenPar::Action::writeExternal ( QDataStream &  stream) const
inlinevirtual

implementation of the QDataStream operator<<

Definition at line 449 of file dyngenpar.h.


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