SourceForge Logo
Main Page   Class Hierarchy   Compound List   File List   Compound Members  

PasswordGroupElement Class Reference

Branch element of the password composite. More...

#include <PasswordGroupElement.h>

Inheritance diagram for PasswordGroupElement:

PasswordTreeElement PassguardErrorManager PasswordRootElement List of all members.

Public Methods

 PasswordGroupElement (string name, int deepness)
 Constructor of the branch element of the password composite. More...

virtual ~PasswordGroupElement ()
 Destructor of the branch element of the password composite. More...

virtual bool addElement (PasswordTreeElement *element)
 Add a child to the element of the composite. More...

virtual bool delElement (PasswordTreeElement *element)
 Delete a child of the composite's element. More...

virtual int getNbChild (void)
 Returns the number of child that the branch have. More...

virtual bool allow (PasswordTreeElementAbstractVisitor &visitor)
 Defines the visitor interface to deal with data processing accross the composite in branch element. More...


Protected Attributes

list< PasswordTreeElement * > _list_elements

Detailed Description

Branch element of the password composite.


Constructor & Destructor Documentation

PasswordGroupElement::PasswordGroupElement string    name,
int    deepness
 

Constructor of the branch element of the password composite.

Parameters:
name  name of the branch element
deepness  the level of the element in the composite's structure
Returns:
none

PasswordGroupElement::~PasswordGroupElement   [virtual]
 

Destructor of the branch element of the password composite.

Returns:
none


Member Function Documentation

bool PasswordGroupElement::addElement PasswordTreeElement   element [virtual]
 

Add a child to the element of the composite.

Parameters:
element  the element to add
Returns:
true if the element has been added successfully / false otherwise.

Reimplemented from PasswordTreeElement.

bool PasswordGroupElement::allow PasswordTreeElementAbstractVisitor   visitor [virtual]
 

Defines the visitor interface to deal with data processing accross the composite in branch element.

Parameters:
visitor  the visitor class that will make the wanted data processing
Return values:
false  data can't be processed in this branch so switch to next one of the current level
true  data have been processed so stop running through the composite

Implements PasswordTreeElement.

Reimplemented in PasswordRootElement.

bool PasswordGroupElement::delElement PasswordTreeElement   element [virtual]
 

Delete a child of the composite's element.

Parameters:
element  the element to delete
Returns:
true if the element has been deleted successfully / false otherwise.

Reimplemented from PasswordTreeElement.

int PasswordGroupElement::getNbChild void    [virtual]
 

Returns the number of child that the branch have.

Returns:
the number of childs

Reimplemented from PasswordTreeElement.


The documentation for this class was generated from the following files:
Generated on Sun Mar 9 15:36:52 2003 for PassGuardFramework by doxygen1.2.15