Disk ARchive  2.5.0
Full featured and portable backup and archiving tool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
defile.hpp
Go to the documentation of this file.
1 /*********************************************************************/
2 // dar - disk archive - a backup/restoration program
3 // Copyright (C) 2002-2052 Denis Corbin
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 //
19 // to contact the author : http://dar.linux.free.fr/email.html
20 /*********************************************************************/
21 
25 
26 #ifndef DEFILE_HPP
27 #define DEFILE_HPP
28 
29 #include "../my_config.h"
30 #include "path.hpp"
31 #include "cat_entree.hpp"
32 #include "on_pool.hpp"
33 
34 namespace libdar
35 {
36 
39 
41 
48  class defile : public on_pool
49  {
50  public :
51  defile(const path &racine) : chemin(racine) { init = true; };
52 
53  void enfile(const cat_entree *e);
54  const path & get_path() const { return chemin; };
55  const std::string & get_string() const { return cache; };
56 
57  private :
58  path chemin; //< current path
59  bool init; //< true if reached the "root" (all pushed arguments have been poped)
60  std::string cache; //< cache of "chemin" converted into string
61  };
62 
64 
65 } // end of namespace
66 
67 #endif
the defile class keep trace of the real path of files while the flow in the filter routines ...
Definition: defile.hpp:48
here is the definition of the path classthe path class handle path and provide several operation on t...
base class for all object contained in a catalogue
this is the base class of object that can be allocated on a memory pool
the root class from all other inherite for any entry in the catalogue
Definition: cat_entree.hpp:84
the class path is here to manipulate paths in the Unix notation: using&#39;/&#39;
Definition: path.hpp:50