Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Folder Class Reference

#include <Folder.hpp>

Inheritance diagram for Folder::

Node List of all members.

Public Methods

 Folder ()
 Folder (const string &id, const string &path, const string &title, const string &desc, const string &add_date)
 Folder (const Folder &n)
void addChild (Node *child)
NodegetChild (const string &title)
void removeChild (const Node *child)
vector< Node *> & getChildren ()
void empty ()

Detailed Description

Represents one folder.


Constructor & Destructor Documentation

Folder::Folder  
 

Default constructor. Sets all properties to an empty string.

Folder::Folder const string &    id,
const string &    path,
const string &    title,
const string &    desc,
const string &    add_date
 

Constructor. Sets all properties to the given value.

Folder::Folder const Folder &    n
 

Copy constructor.


Member Function Documentation

void Folder::addChild Node   child
 

Add a child node to this folder.

void Folder::empty  
 

Remove all children.

Note:
This method doesn't free any memory.

Node * Folder::getChild const string &    title
 

Get the child node with the specified title.

vector< Node *> & Folder::getChildren  
 

Get all children of this folder.

Returns:
Unsorted vector of pointer to Node.

void Folder::removeChild const Node   child
 

Remove the specified child from this folder.

Note:
This method doesn't free any memory.


The documentation for this class was generated from the following files:
Generated on Sun Jan 20 20:59:59 2002 for bkmd by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001