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

PasswordFinderVisitor.h

Go to the documentation of this file.
00001 /*!
00002  * \file PasswordFinderVisitor.h
00003  * \brief Defines the visitor of the password composite
00004  *
00005  * \author Frederic RUAUDEL <grumz@users.sf.net>
00006  *
00007  * $Revision: 1.9 $
00008  * $Date: 2003/02/14 10:07:14 $
00009  *
00010  * \b PassGuardFramework
00011  * Copyleft (c) 2002 Frederic RUAUDEL, all rights reversed
00012  *
00013  * This program is free software which I release under the GNU General Public
00014  * License. You may redistribute and/or modify this program under the terms
00015  * of that license as published by the Free Software Foundation; either
00016  * version 2 of the License, or (at your option) any later version.
00017  *
00018  * This program is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.  Version 2 is in the
00022  * COPYING file in the top level directory of this distribution.
00023  *
00024  * To get a copy of the GNU General Public License, write to the Free Software
00025  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  **/
00027 
00028 #ifndef PASSWORD_FINDER_VISITOR_H
00029 #define PASSWORD_FINDER_VISITOR_H
00030 
00031 #include <stdio.h>
00032 
00033 #include <PasswordRootElement.h>
00034 #include <PasswordGroupElement.h>
00035 #include <PasswordManagerElement.h>
00036 #include <PasswordInfos.h>
00037 
00038 using namespace std;
00039 
00040 /*!
00041  * \brief Visitor of the password composite used to find a password 
00042  *              that match with the PasswordInfos given in arguments
00043  **/
00044 class PasswordFinderVisitor : public PasswordTreeElementAbstractVisitor
00045 {
00046         public:
00047                 PasswordFinderVisitor ();
00048                 virtual ~PasswordFinderVisitor ();
00049 
00050                 virtual int visitPasswordRootElement (PasswordRootElement* element);
00051                 virtual int visitPasswordGroupElement (PasswordGroupElement* element);
00052                 virtual int visitPasswordManagerElement (PasswordManagerElement* element);
00053 
00054                 list<string> getSublevelPossibilities (void);
00055                 int getSublevelNumber (void) const;
00056                 PasswordInfos getPasswordInfos (void) const;
00057                 virtual void setPasswordInfos (PasswordInfos password_infos);
00058                 bool isPasswordInfosFound (void) const;
00059 
00060         protected:
00061                 PasswordInfos _password_infos;
00062                 list<string> _sublevel_possibilities;
00063                 int _current_deepness;
00064                 bool _found_password;
00065 };
00066 
00067 #endif /* PASSWORD_FINDER_VISITOR_H */

Generated on Sun Mar 9 15:36:50 2003 for PassGuardFramework by doxygen1.2.15