Particle Universe
1.2
|
#include <ParticleUniverseContext.h>
Public Member Functions | |
Context (void) | |
virtual | ~Context (void) |
void | beginSection (const String §ionName, IElement *element=0, const String &elementName=BLANK_STRING) |
void | endSection (void) |
const String & | getCurrentSectionName (void) |
const String & | getPreviousSectionName (void) |
const String & | getParentSectionName (void) |
IElement * | getCurrentSectionElement (void) |
IElement * | getPreviousSectionElement (void) |
IElement * | getParentSectionElement (void) |
const String & | getCurrentSectionElementName (void) |
const String & | getPreviousSectionElementName (void) |
const String & | getParentSectionElementName (void) |
IElement * | getSectionElement (const String &sName) |
void | validateCurrentSectionName (const String §ionName, const String &calledFromFunction=BLANK_STRING) |
Public Attributes | |
IToken * | attributeToken |
Protected Types | |
typedef vector< Section * > | ContextStack |
Protected Member Functions | |
Section * | _getCurrentSection (void) |
Section * | _getParentSection (void) |
Protected Attributes | |
ContextStack | mContextStack |
Section | mPreviousProcessedSection |
The Context class is used to manage the sections of a particle universe script.
Note, that Context is not used for parsing scripts anymore, but it is still used in writing scripts.
|
protected |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
IToken* ParticleUniverse::Context::attributeToken |
attributeToken is needed to temporary set the last attribute value of the parsed script.
|
protected |
|
protected |
This is the last processed section, which is still available for a 'higher' section