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

PasswordTreeAddElementVisitor Class Reference

The visitor used to create the password composite from the password infos. More...

#include <PasswordTreeAddElementVisitor.h>

Inheritance diagram for PasswordTreeAddElementVisitor:

PasswordFinderVisitor PasswordTreeElementAbstractVisitor PassguardErrorManager List of all members.

Public Methods

 PasswordTreeAddElementVisitor (PasswordTreeElementFactory *factory)
 Constructor of the visitor used to add a password infos to the password composite. More...

virtual ~PasswordTreeAddElementVisitor ()
 Destructor of the visitor used to add a password infos to the password composite. More...

virtual int visitPasswordRootElement (PasswordRootElement *element)
 Checks if the password information could already be here and if not insert it. More...

virtual int visitPasswordGroupElement (PasswordGroupElement *element)
 Checks if the password information could already be here and if not insert it. More...

virtual int visitPasswordManagerElement (PasswordManagerElement *element)
 Checks if the password informations entry already exists. More...

virtual void setPasswordInfos (PasswordInfos password_infos)
 Defines the password infos of the visitor and reset the visit. More...

bool isPasswordInfosAdded (void)
 Informs if the password informations have been inserted successfully. More...


Detailed Description

The visitor used to create the password composite from the password infos.


Constructor & Destructor Documentation

PasswordTreeAddElementVisitor::PasswordTreeAddElementVisitor PasswordTreeElementFactory   factory
 

Constructor of the visitor used to add a password infos to the password composite.

Parameters:
factory  the factory to create the tree elements
Returns:
none

PasswordTreeAddElementVisitor::~PasswordTreeAddElementVisitor   [virtual]
 

Destructor of the visitor used to add a password infos to the password composite.

Returns:
none


Member Function Documentation

bool PasswordTreeAddElementVisitor::isPasswordInfosAdded void   
 

Informs if the password informations have been inserted successfully.

Returns:
true if it succeeds / false otherwise

void PasswordTreeAddElementVisitor::setPasswordInfos PasswordInfos    password_infos [virtual]
 

Defines the password infos of the visitor and reset the visit.

Parameters:
password_infos  the password infos entry of create
Returns:
none

Reimplemented from PasswordFinderVisitor.

int PasswordTreeAddElementVisitor::visitPasswordGroupElement PasswordGroupElement   element [virtual]
 

Checks if the password information could already be here and if not insert it.

Parameters:
element  the branch element to analyze
Return values:
-1  switch to next branch of the current level to analyze it
0  stop running through if the infos have been inserted successfully
1  continue through this branch if the password informations match

Reimplemented from PasswordFinderVisitor.

int PasswordTreeAddElementVisitor::visitPasswordManagerElement PasswordManagerElement   element [virtual]
 

Checks if the password informations entry already exists.

Parameters:
element  the leaf element to analyze
Returns:
always 0 to stop the run
Note:
if we get here, it means that the password informations already exists in the composite. Use is_password_infos_created() function to check if the insertion succeeds or not.

Reimplemented from PasswordFinderVisitor.

int PasswordTreeAddElementVisitor::visitPasswordRootElement PasswordRootElement   element [virtual]
 

Checks if the password information could already be here and if not insert it.

Parameters:
element  the root element to analyze
Return values:
0  stop running through if we have inserted the branch successfully
1  continue through this branch otherwise

Reimplemented from PasswordFinderVisitor.


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