Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

MenuSystem::Node Class Reference

structure representing a node. More...

#include <node.h>

List of all members.

Public Types

typedef std::list< Node *> node_list
typedef std::list< Node
*>::iterator 
node_list_it

Public Methods

 Node (Node *parent, MenuBase tag)
bool is_item () const
 retuns true if the tag is an item. More...

bool is_menu () const
 returns true if the tag is an menu. More...

void add_child (Node *node)
 adds a new child to the Node. More...

bool find_node (std::string path, Node *&node)
 finds a sub Node. More...

bool find_node_rec (std::string path, Node *parent, Node *&node)
 finds a node within the tree. More...

bool find_node_rec (std::string path, Node *&node)
 finds a node within the tree. More...


Public Attributes

MenuBase tag
Node * parent
node_list childs
std::string path
 the path of the menu filesystem. More...

std::string subdir
 the realaty file system path. More...


Detailed Description

structure representing a node.


Member Typedef Documentation

typedef std::list<Node*> MenuSystem::Node::node_list
 

typedef std::list<Node*>::iterator MenuSystem::Node::node_list_it
 


Constructor & Destructor Documentation

MenuSystem::Node::Node Node *    parent,
MenuBase    tag
 


Member Function Documentation

void MenuSystem::Node::add_child Node *    node
 

adds a new child to the Node.

bool MenuSystem::Node::find_node std::string    path,
Node *&    node
 

finds a sub Node.

bool MenuSystem::Node::find_node_rec std::string    path,
Node *&    node
[inline]
 

finds a node within the tree.

start searching at this position

bool MenuSystem::Node::find_node_rec std::string    path,
Node *    parent,
Node *&    node
 

finds a node within the tree.

bool MenuSystem::Node::is_item   const [inline]
 

retuns true if the tag is an item.

bool MenuSystem::Node::is_menu   const [inline]
 

returns true if the tag is an menu.


Member Data Documentation

node_list MenuSystem::Node::childs
 

Node* MenuSystem::Node::parent
 

std::string MenuSystem::Node::path
 

the path of the menu filesystem.

std::string MenuSystem::Node::subdir
 

the realaty file system path.

MenuBase MenuSystem::Node::tag
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:20:01 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001