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

PasswordSetCommandVisitor Class Reference

Visitor of the password composite used to run through all the tree and add to every password leaves a command. More...

#include <PasswordSetCommandVisitor.h>

List of all members.

Public Methods

 PasswordSetCommandVisitor (PassguardCommandAbstractFactory *factory, int nb_password_information)
 Constructor of the class PasswordSetCommandVisitor. More...

virtual ~PasswordSetCommandVisitor ()
 Destructor of the class PasswordSetCommandVisitor. More...

virtual int visitPasswordRootElement (PasswordRootElement *element)
 Go directly to the childs. More...

virtual int visitPasswordGroupElement (PasswordGroupElement *element)
 Store the current group name in the PasswordInfos structure. More...

virtual int visitPasswordManagerElement (PasswordManagerElement *element)
 Store the password and description in the PasswordInfos structure and push it into the codec object. More...

bool isVisitSuccessfull (void)
 Infirms if the saving of the tree has occured successfully. More...


Protected Attributes

bool _is_successfull
string _last_function_in_error
PassguardCommandAbstractFactory_factory
PasswordInfos * _current_password_infos
int _password_nb_field


Detailed Description

Visitor of the password composite used to run through all the tree and add to every password leaves a command.


Constructor & Destructor Documentation

PasswordSetCommandVisitor::PasswordSetCommandVisitor PassguardCommandAbstractFactory   factory,
int    nb_password_information
 

Constructor of the class PasswordSetCommandVisitor.

Parameters:
factory  the factory to create the command to add
nb_password_information  the result of the codec's function getNbField ()
Returns:
none

PasswordSetCommandVisitor::~PasswordSetCommandVisitor   [virtual]
 

Destructor of the class PasswordSetCommandVisitor.

Returns:
none


Member Function Documentation

bool PasswordSetCommandVisitor::isVisitSuccessfull void   
 

Infirms if the saving of the tree has occured successfully.

Returns:
true if OK, false otherwise

int PasswordSetCommandVisitor::visitPasswordGroupElement PasswordGroupElement *    element [virtual]
 

Store the current group name in the PasswordInfos structure.

Parameters:
element  the branch to manipulate
Returns:
always 1 to go through all childs

int PasswordSetCommandVisitor::visitPasswordManagerElement PasswordManagerElement *    element [virtual]
 

Store the password and description in the PasswordInfos structure and push it into the codec object.

Parameters:
element  the leaf to manipulate
Return values:
-1  to switch to next branch of the current level
0  to stop running through if you can't push passwords in the codec objects

int PasswordSetCommandVisitor::visitPasswordRootElement PasswordRootElement *    element [virtual]
 

Go directly to the childs.

Parameters:
element  root to manipulate
Return values:
1  if codec is correctly setted
0  otherwise to stop running through


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