#include <PasswordFinderVisitor.h>
Inheritance diagram for PasswordFinderVisitor:
Public Methods | |
PasswordFinderVisitor () | |
Constructor of the visitor for the password composite. More... | |
virtual | ~PasswordFinderVisitor () |
Destructor of the visitor for the password composite. More... | |
virtual int | visitPasswordRootElement (PasswordRootElement *element) |
Go directly to the childs. More... | |
virtual int | visitPasswordGroupElement (PasswordGroupElement *element) |
Checks if the branch's name is equal with the corresponding entry in the password infos structure. More... | |
virtual int | visitPasswordManagerElement (PasswordManagerElement *element) |
Checks if the leaf's password informations correspond with the one researched. More... | |
list< string > | getSublevelPossibilities (void) |
Returns the list of all the possibilities for the next level, if the password informations are incompletely filled. More... | |
int | getSublevelNumber (void) const |
Informs of which level the sublevel possibilities corresponds. More... | |
PasswordInfos | getPasswordInfos (void) const |
Informs of the password infos of the visitor. More... | |
virtual void | setPasswordInfos (PasswordInfos password_infos) |
Defines the password infos of the visitor and reset the visit. More... | |
bool | isPasswordInfosFound (void) const |
Informs if the password infos was found in the tree. More... | |
Protected Attributes | |
PasswordInfos | _password_infos |
list< string > | _sublevel_possibilities |
int | _current_deepness |
bool | _found_password |
|
Constructor of the visitor for the password composite.
|
|
Destructor of the visitor for the password composite.
|
|
Informs of the password infos of the visitor.
|
|
Informs of which level the sublevel possibilities corresponds.
|
|
Returns the list of all the possibilities for the next level, if the password informations are incompletely filled.
|
|
Informs if the password infos was found in the tree.
|
|
Defines the password infos of the visitor and reset the visit.
Reimplemented in PasswordTreeAddElementVisitor, and PasswordTreeDelElementVisitor. |
|
Checks if the branch's name is equal with the corresponding entry in the password infos structure.
Implements PasswordTreeElementAbstractVisitor. Reimplemented in PasswordTreeAddElementVisitor, and PasswordTreeDelElementVisitor. |
|
Checks if the leaf's password informations correspond with the one researched.
If ok, fill the password infos structure with the password and description in order they can be retreived with the getPasswordInfos() function.
Implements PasswordTreeElementAbstractVisitor. Reimplemented in PasswordTreeAddElementVisitor, and PasswordTreeDelElementVisitor. |
|
Go directly to the childs.
Implements PasswordTreeElementAbstractVisitor. Reimplemented in PasswordTreeAddElementVisitor, and PasswordTreeDelElementVisitor. |