The Mother Of All Star Nodes (literally)
![]() | Status This status is sometimes returned by functions to report errors
|
![]() | AddDataBlock (const string & name) DEPRECIATED - Use the vector insert operator of ASTlist instead |
![]() | AddSaveFrame (const string & name) DEPRECIATED - Use the vector insert operator of ASTlist instead |
![]() | AddSaveFrameDataItem ( const string & name, const string & value, DataValueNode::ValType type) DEPRECIATED - Use the vector insert operator instead |
![]() | AddSaveFrameLoop () DEPRECIATED - Use the vector insert operator instead |
![]() | AddSaveFrameLoopDataName (const string & name) DEPRECIATED - Use the vector insert operator instead |
![]() | AddSaveFrameLoopDataValue ( const string & value, DataValueNode::ValType type ) DEPRECIATED - Use the vector insert operator instead |
![]() | AddSaveFrameToDataBlock (string datablockName, DataNode* newNode) DEPRECIATED - Use the vector insert operator of ASTlist instead |
![]() | GiveMyDataBlockList () Returns a list of all blocks in the star tree |
![]() | isOfType ( ASTtype T ) |
![]() | myType (void) |
![]() | RemoveSaveFrame (string datablockName, string saveframeName) DEPRECIATED - Use the delete operator insread, or see List::erase (STL vector erase): Deletes the save frame name given in the data block name given: |
![]() | ReturnDataBlockDataNode (string datablockName, string saveframeName) DEPRECIATED - see searchByTag instead |
![]() | searchByTag ( string &searchFor ) Given a tag name, find the AST object it resides in |
![]() | searchByTagValue ( string &tag, string &value ) Given a tag name and a value, find the AST object that that particular tag and value pair resides in |
![]() | searchForType ( ASTtype type, int delim = -1 ) This method returns a list of all the nodes of the given type that are inside this node, or children of this node, or children of children of this node, etc all the way down to the leaf nodes |
![]() | unlinkChild ( ASTnode *child ) Unlinks the given ASTnode from this ASTnode, assuming that the given ASTnode is a child of this ASTnode |
![]() | Unparse (int indent) Print the whole star file out to (*os), indenting it to the level given in the parameter |
![]() | ~StarFileNode () |
![]() |
|
The Mother Of All Star Nodes (literally). This node is the root of the star tree for a whole star file. If a star file is parsed in with yyparse(), it produces an object of this type, which in turn contains the rest of the star tree.
StarFileNode(StarListNode *n)
StarFileNode()
StarFileNode( bool link, StarFileNode &n)
virtual void Unparse(int indent)
virtual ASTnode::ASTtype myType(void)
virtual bool isOfType( ASTtype T )
DataNode* ReturnDataBlockDataNode(string datablockName, string saveframeName)
Returns the save frame matching the name given in the data block name given:
void RemoveSaveFrame(string datablockName, string saveframeName)
Deletes the save frame name given in the data block name given:
void AddSaveFrameToDataBlock(string datablockName, DataNode* newNode)
Given a save frame, adds it to the datablock name given. The
save frame is passed as a generic DataNode, rather than a SaveFrameNode.
The DataNode given is hooked right into the star tree, no copied, so
don't delete it after adding it.
ASTlist <BlockNode*> * GiveMyDataBlockList()
StarFileNode::Status AddDataBlock(const string & name)
Add a new datablock (empty) to the star file, labelling it with the
name given. Adds at the end.
StarFileNode::Status AddSaveFrame(const string & name)
Add an empty save frame to the star file, labelling it eith the
name given. Adds at the end.
StarFileNode::Status AddSaveFrameDataItem( const string & name, const string & value, DataValueNode::ValType type)
Add a data item to the save frame, with the name/value pair
given. Adds to the last save frame in the star file tree.
returns ERROR if the last thing in the star file is not
a save frame.
StarFileNode::Status AddSaveFrameLoop()
Add a loop to the last save frame in the star file.
returns ERROR if the last thing in the star file is not
a save frame.
StarFileNode::Status AddSaveFrameLoopDataName(const string & name)
Add a new name to the loop at the end of the last save frame
of the file. returns ERROR if the last thing in the save frame
is not a loop, or if the last thing in the AST is not a save
frame.
StarFileNode::Status AddSaveFrameLoopDataValue( const string & value, DataValueNode::ValType type )
Add a new value to the end of the loop at the end of the last
save frame of the file. returns ERROR if the last thing in
the save frame is not a loop, or if the last thing in the
AST is not a save frame.
virtual List <ASTnode*> * searchByTag( string &searchFor )
virtual List <ASTnode*> * searchForType( ASTtype type, int delim = -1 )
delim - - the delimiter type to search for if this is a search for
DataValueNodes (enum DataValueNode::ValType) Leave it off
if you don't care about delimiter type or if this is a search
for something other than a DataValueNode virtual List <ASTnode*> * searchByTagValue( string &tag, string &value )
value - - Where it has this value. virtual bool unlinkChild( ASTnode *child )
alphabetic index hierarchy of classes
generated by doc++