Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

State Class Reference

The State base class: State Design Pattern. More...

#include <state.h>

Inheritance diagram for State:

Inheritance graph
[legend]
List of all members.

Public Types

enum  State_t {
  NEUTRAL = 1, IDENT, STATICVAR, FDECL,
  CSTMT
}
 The possible states of the FSM.

Public Member Functions

 State (const char *nameIn)
 State the name of the derived state.
virtual ~State ()=0
 delete the name of the derived state
const char * name ()
 Return the name of the derived state during PrintState debugging.
virtual State_t execute (AddTraceString &ats, CxxScanner &scanner, Token *t)=0
 Virtual execute function.
Token nonCommentRead (CxxScanner &scanner, const char *errStr=0)
 Send comments to the output and return the next nonCommented token.

Private Attributes

char * mp_name
 Name of the derived state used in PrintState debugging.

Detailed Description

The State base class: State Design Pattern.

Description
This base class holds the State_t and the name of the derived class.


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



Project Hosted By:
SourceForge.net Logo