Aegis  4.25.D505
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/change/functor/file_find.h
Go to the documentation of this file.
00001 //
00002 // aegis - project change supervisor
00003 // Copyright (C) 2008 Walter Franzini
00004 // Copyright (C) 2008 Peter Miller
00005 //
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation; either version 3 of the License, or (at
00009 // your option) any later version.
00010 //
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU General Public License along
00017 // with this program. If not, see <http://www.gnu.org/licenses/>.
00018 //
00019 
00020 #ifndef LIBAEGIS_CHANGE_FUNCTOR_FILE_FIND_H
00021 #define LIBAEGIS_CHANGE_FUNCTOR_FILE_FIND_H
00022 
00023 #include <common/symtab/template.h>
00024 #include <libaegis/change/functor.h>
00025 
00026 class nstring_list;
00027 
00033 class change_functor_file_find:
00034     public change_functor
00035 {
00036 public:
00040     change_functor_file_find(const nstring_list &);
00041 
00045     virtual ~change_functor_file_find();
00046 
00047     // See base class for documentation.
00048     void operator()(change::pointer cp);
00049 
00061     nstring* query(const nstring &fn) const;
00062 
00074     nstring* query(string_ty *fn) const { return query(nstring(fn)); }
00075 
00076 private:
00077     symtab<nstring> file_to_uuid;
00078 
00082     change_functor_file_find(const change_functor_file_find &);
00083 
00087     change_functor_file_find &operator=(const change_functor_file_find &);
00088 };
00089 
00090 #endif // LIBAEGIS_CHANGE_FUNCTOR_FILE_FIND_H