|
Public Types |
| typedef Scope< Sequence > | MyScope |
| typedef VarHashEntry< Sequence > | Entry |
Public Member Functions |
| virtual | ~VariableStore () |
| | default destructor
|
| virtual void | clear ()=0 |
| | Clears all variable values and added scopes from the store.
|
| virtual void | addLocalScope ()=0 |
| | Adds a new local scope to the store.
|
| virtual void | addLogicalBlockScope ()=0 |
| | Adds a new logical block scope to the store.
|
| virtual void | removeScope ()=0 |
| | Removes the top level scope from the store.
|
| virtual MyScope * | getScopeState ()=0 |
| | Returns an encapsulation of the state of the variable store.
|
| virtual void | setScopeState (MyScope *state)=0 |
| | Sets the variable store to a previous state.
|
| virtual void | setGlobalVar (const XMLCh *ident, const Sequence &value, const StaticContext *context, const LocationInfo *location)=0 |
| | Declares and/or sets a variable in the global scope.
|
| virtual void | setGlobalVar (const XMLCh *namespaceURI, const XMLCh *name, const Sequence &value, const StaticContext *context)=0 |
| virtual void | setVar (const XMLCh *ident, const Sequence &value, const StaticContext *context, const LocationInfo *location)=0 |
| | Declares and/or sets a variable in the top level scope.
|
| virtual void | setVar (const XMLCh *namespaceURI, const XMLCh *name, const Sequence &value, const StaticContext *context)=0 |
| virtual void | declareVar (const XMLCh *ident, const Sequence &value, const StaticContext *context, const LocationInfo *location)=0 |
| | Declare a var in the top level scope (A full set of these namespaceURI/name pair methods should be made).
|
| virtual void | declareVar (const XMLCh *namespaceURI, const XMLCh *name, const Sequence &value, const StaticContext *context)=0 |
virtual const std::pair< bool,
Sequence > | getVar (const XMLCh *ident, const StaticContext *context, const LocationInfo *location) const =0 |
| | Looks up the value of a variable in the current scope, using ident as an qname.
|
virtual const std::pair< bool,
Sequence > | getVar (const XMLCh *namespaceURI, const XMLCh *name, const StaticContext *context) const =0 |
| virtual Entry * | getReferenceVar (const XMLCh *ident, const StaticContext *context, const LocationInfo *location) const =0 |
| | Looks up the value of a variable in the current scope, using ident as an qname.
|
| virtual Entry * | getReferenceVar (const XMLCh *namespaceURI, const XMLCh *name, const StaticContext *context) const =0 |
virtual const std::pair< bool,
Sequence > | getGlobalVar (const XMLCh *ident, const StaticContext *context, const LocationInfo *location) const =0 |
| | Gets a variable from the global scope.
|
virtual const std::pair< bool,
Sequence > | getGlobalVar (const XMLCh *namespaceURI, const XMLCh *name, const StaticContext *context) const =0 |
| virtual void | delVar (const XMLCh *ident, const StaticContext *context, const LocationInfo *location)=0 |
| | Deletes a variable from the current scope.
|
| virtual void | delVar (const XMLCh *namespaceURI, const XMLCh *name, const StaticContext *context)=0 |
| virtual void | delGlobalVar (const XMLCh *ident, const StaticContext *context, const LocationInfo *location)=0 |
| | Deletes a variable from the global scope.
|
| virtual XMLCh * | print (xercesc::MemoryManager *memMgr) const =0 |
| | Gives human readable representation of the variable store.
|
virtual std::vector< std::pair<
const XMLCh *, const XMLCh * > > | getVars () const =0 |
| | Returns a vector with the names of the variable currently in scope.
|