Aegis  4.25.D505
libaegis/dir/functor.h
Go to the documentation of this file.
00001 //
00002 //      aegis - project change supervisor
00003 //      Copyright (C) 2005, 2006, 2008 Peter Miller
00004 //
00005 //      This program is free software; you can redistribute it and/or modify
00006 //      it under the terms of the GNU General Public License as published by
00007 //      the Free Software Foundation; either version 3 of the License, or
00008 //      (at your option) any later version.
00009 //
00010 //      This program is distributed in the hope that it will be useful,
00011 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //      GNU General Public License for more details.
00014 //
00015 //      You should have received a copy of the GNU General Public License
00016 //      along with this program. If not, see
00017 //      <http://www.gnu.org/licenses/>.
00018 //
00019 
00020 #ifndef LIBAEGIS_DIR_FUNCTOR_H
00021 #define LIBAEGIS_DIR_FUNCTOR_H
00022 
00023 class nstring; // forward
00024 
00029 class dir_functor
00030 {
00031 public:
00035     virtual ~dir_functor();
00036 
00040     dir_functor();
00041 
00045     dir_functor(const dir_functor &);
00046 
00050     dir_functor &operator=(const dir_functor &);
00051 
00052     enum msg_t
00053     {
00054         msg_dir_before,
00055         msg_dir_after,
00056         msg_file,
00057         msg_special,
00058         msg_symlink
00059     };
00060 
00072     virtual void operator()(msg_t msg, const nstring &path,
00073         const struct stat &st) = 0;
00074 };
00075 
00076 #endif // LIBAEGIS_DIR_FUNCTOR_H