FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::ZipTree Class Reference

#include <ziptree.h>

+ Collaboration diagram for FIFE::ZipTree:

Public Member Functions

 ZipTree ()
 constructor More...
 
 ~ZipTree ()
 destructor More...
 
ZipNodeaddNode (const std::string &nodePath)
 adds a node to the proper place in the tree based on the node path name More...
 
ZipNodegetNode (const std::string &name) const
 accessor for getting a node by name More...
 
ZipNodegetRootNode () const
 accessor for the root node of the tree mostly used for debugging purposes More...
 

Private Attributes

ZipNodem_rootNode
 

Detailed Description

Definition at line 41 of file ziptree.h.

Constructor & Destructor Documentation

FIFE::ZipTree::ZipTree ( )

constructor

Definition at line 39 of file ziptree.cpp.

FIFE::ZipTree::~ZipTree ( )

destructor

Definition at line 44 of file ziptree.cpp.

References m_rootNode.

Member Function Documentation

ZipNode * FIFE::ZipTree::addNode ( const std::string &  nodePath)

adds a node to the proper place in the tree based on the node path name

Parameters
nodePaththe node description
Returns
ZipNode of the most derived path added (value after the last path separator) or NULL if the path could not be added

Definition at line 48 of file ziptree.cpp.

References FIFE::ZipNode::addChild(), FIFE::ZipNode::getChild(), FIFE::GetPathIteratorAsString(), and m_rootNode.

Referenced by FIFE::ZipSource::readFileToIndex().

+ Here is the caller graph for this function:

ZipNode * FIFE::ZipTree::getNode ( const std::string &  name) const

accessor for getting a node by name

Parameters
namethe name to search for @ param ZipNode pointer, or NULL if not found

Definition at line 91 of file ziptree.cpp.

References FIFE::ZipNode::getChild(), FIFE::ZipNode::getParent(), FIFE::GetPathIteratorAsString(), and getRootNode().

Referenced by FIFE::ZipSource::fileExists(), FIFE::ZipSource::listDirectories(), FIFE::ZipSource::listFiles(), and FIFE::ZipSource::open().

+ Here is the caller graph for this function:

ZipNode * FIFE::ZipTree::getRootNode ( ) const

accessor for the root node of the tree mostly used for debugging purposes

Returns
ZipNode pointer to the root node

Definition at line 120 of file ziptree.cpp.

References m_rootNode.

Referenced by getNode(), and operator<<().

+ Here is the caller graph for this function:

Member Data Documentation

ZipNode* FIFE::ZipTree::m_rootNode
private

Definition at line 72 of file ziptree.h.

Referenced by addNode(), getRootNode(), and ~ZipTree().


The documentation for this class was generated from the following files: