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

PasswordSaverVisitor Class Reference

Visitor of the password composite used to run throught all the tree and push every PasswordInfos structure into the given codec object. More...

#include <PasswordSaverVisitor.h>

Inheritance diagram for PasswordSaverVisitor:

PasswordTreeElementAbstractVisitor PassguardErrorManager List of all members.

Public Methods

 PasswordSaverVisitor ()
 Constructor of the class PasswordSaverVisitor. More...

virtual ~PasswordSaverVisitor ()
 Destructor of the class PasswordSaverVisitor. 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...

void setCodecToUse (PasswordCodecPrototype *codec)
 Set the codec object to use to save the tree. 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
PasswordCodecPrototype_codec
PasswordInfos_current_password_infos

Detailed Description

Visitor of the password composite used to run throught all the tree and push every PasswordInfos structure into the given codec object.


Constructor & Destructor Documentation

PasswordSaverVisitor::PasswordSaverVisitor  
 

Constructor of the class PasswordSaverVisitor.

Returns:
none

PasswordSaverVisitor::~PasswordSaverVisitor   [virtual]
 

Destructor of the class PasswordSaverVisitor.

Returns:
none


Member Function Documentation

bool PasswordSaverVisitor::isVisitSuccessfull void   
 

Infirms if the saving of the tree has occured successfully.

Returns:
true if OK, false otherwise

void PasswordSaverVisitor::setCodecToUse PasswordCodecPrototype   codec
 

Set the codec object to use to save the tree.

Parameters:
codec  a valid codec object
Returns:
none

int PasswordSaverVisitor::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

Implements PasswordTreeElementAbstractVisitor.

int PasswordSaverVisitor::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

Implements PasswordTreeElementAbstractVisitor.

int PasswordSaverVisitor::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

Implements PasswordTreeElementAbstractVisitor.


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