Holds a list of the kinds of things that can be in a DataBlockNode
![]() | AddSaveFrame (const string & name) DEPRECIATED - use STL vector insert() on the list returned by GiveMyDataList instead |
![]() | AddSaveFrameDataItem ( const string & name, const string & value, DataValueNode::ValType type) DEPRECIATED - use STL vector insert() on the list returned by GiveMyDataList instead |
![]() | AddSaveFrameLoop () DEPRECIATED - use STL vector insert() on the list returned by GiveMyDataList instead |
![]() | AddSaveFrameLoopDataName (const string & name) DEPRECIATED - use STL vector insert() on the list returned by GiveMyDataList instead |
![]() | AddSaveFrameLoopDataValue ( const string & value, DataValueNode::ValType type ) DEPRECIATED - use STL vector insert() on the list returned by GiveMyDataList instead |
![]() | AddSaveFrameToDataBlock (DataNode* newNode) DEPRECIATED - use STL vector insert() on the list returned by GiveMyDataList instead |
![]() | GiveMyDataList ( void ) Returns a list of all DataNodes in the data list |
![]() | isOfType ( ASTtype T ) |
![]() | myLongestStr ( void ) Returns the length of the longest string in this object |
![]() | myType (void) |
![]() | RemoveSaveFrame (string saveframe) DEPRECIATED - use STL vector erase() on the list returned by GiveMyDataList instead |
![]() | ReturnDataBlockDataNode (string saveframeName) DEPRECIATED - use 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) |
![]() | ~DataListNode () Destructor - Recursively destroys the items inside the node as well |
![]() |
|
Holds a list of the kinds of things that can be in a DataBlockNode. (This means SaveFrameNodes, DataLoopNodes, and DataItemNodes)
DataListNode(ASTlist<DataNode *> *L)
DataListNode()
DataListNode( bool link, DataListNode &L )
virtual ASTnode::ASTtype myType(void)
virtual bool isOfType( ASTtype T )
ASTlist <DataNode*> * GiveMyDataList( void )
void RemoveSaveFrame(string saveframe)
Remove the save frame matching the given name.
DataNode* ReturnDataBlockDataNode(string saveframeName)
Return the datanode (usually a saveframe) that matches the
name given.)
void AddSaveFrameToDataBlock(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.
virtual void Unparse(int indent)
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*> * searchByTagValue( string &tag, string &value )
value - Where it has this value virtual List <ASTnode*> * searchForType( ASTtype type, int delim = -1 )
delim - If the node is a DataValueNode, then look specificly
for values with this kind of delimiter. The default
if it is left off is "dont-care". virtual bool unlinkChild( ASTnode *child )
virtual int myLongestStr( void )
alphabetic index hierarchy of classes
generated by doc++