12 #ifndef STATESTARTLANGELEM_H
13 #define STATESTARTLANGELEM_H
47 virtual const std::string
toString()
const;
Definition: langelem.h:24
a language element that introduces a new state pattern Composite
Definition: statelangelem.h:38
A language element that may start a new state/environment.
Definition: statestartlangelem.h:25
void setStateLangElem(StateLangElem *s)
Sets the state for which this element represents the start.
Definition: statestartlangelem.h:91
void setExit(unsigned int level=1)
Sets the "exit" property of this element (i.e., if the element is match then exit one state)
Definition: statestartlangelem.h:54
bool exit_all
whether to exit all states
Definition: statestartlangelem.h:31
unsigned int exit
the exit level
Definition: statestartlangelem.h:28
void setExitAll()
Sets the "exit all" property of this element (i.e., if the element is match then exit all states and ...
Definition: statestartlangelem.h:62
StateLangElem * getStateLangElem() const
Definition: statestartlangelem.h:83
bool exitAll() const
Definition: statestartlangelem.h:69
StateStartLangElem(const std::string &n, unsigned int exit=0, bool all=false)
Definition: statestartlangelem.cpp:23
unsigned int getExit() const
Definition: statestartlangelem.h:76
StateLangElem * statelangelem
the possible State of which we represent the start.
Definition: statestartlangelem.h:34
virtual const std::string toString() const
return the string representation (with preprocessing)
Definition: statestartlangelem.cpp:33
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13