| Disk ARchive 2.5.10 Full featured and portable backup and archiving tool

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

cat_prise.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 CAT_PRISE_HPP
27 #define CAT_PRISE_HPP
28
29 #include "../my_config.h"
30
31 extern "C"
32 {
33 } // end extern "C"
34
35 #include "cat_inode.hpp"
36 #include "cat_tools.hpp"
37
38 namespace libdar
39 {
40
43
44
46 class cat_prise : public cat_inode
47 {
48 public :
49 cat_prise(const infinint & xuid, const infinint & xgid, U_16 xperm,
50 const datetime & last_access,
51 const datetime & last_modif,
52 const datetime & last_change,
53 const std::string & xname,
54 const infinint & fs_device):
55 cat_inode(xuid, xgid, xperm, last_access, last_modif, last_change, xname, fs_device)
56 { set_saved_status(s_saved); };
57
58 cat_prise(user_interaction & dialog,
59 const smart_pointer<pile_descriptor> & pdesc,
60 const archive_version & reading_ver,
61 saved_status saved,
62 bool small): cat_inode(dialog, pdesc, reading_ver, saved, small) {};
63
64 bool operator == (const cat_entree & ref) const;
65
66 // using dump from cat_inode class
67 // using method is_more_recent_than() from cat_inode class
68 // using method has_changed_since() from cat_inode class
69
71 unsigned char signature() const { return mk_signature('s', get_saved_status()); };
72
74 cat_entree *clone() const { return new (get_pool()) cat_prise(*this); };
75 };
76
78
79 } // end of namespace
80
81 #endif
libdar::cat_prise
the Unix socket inode class
Definition: cat_prise.hpp:46
libdar::user_interaction
This is a pure virtual class that is used by libdar when interaction with the user is required...
Definition: user_interaction.hpp:98
libdar::on_pool::get_pool
memory_pool * get_pool() const
Definition: on_pool.hpp:144
libdar::cat_prise::signature
unsigned char signature() const
inherited from cat_entree
Definition: cat_prise.hpp:71
libdar::cat_prise::operator==
bool operator==(const cat_entree &ref) const
returns true if the two object have the same content
libdar::smart_pointer< pile_descriptor >
libdar::cat_inode
the root class for all cat_inode
Definition: cat_inode.hpp:54
libdar::cat_prise::clone
cat_entree * clone() const
inherited from cat_entree
Definition: cat_prise.hpp:74
cat_inode.hpp
base object for all inode types, managed EA and FSA, dates, permissions, ownership, ...
libdar::infinint
the arbitrary large positive integer class
Definition: real_infinint.hpp:59
libdar::archive_version
class archive_version manages the version of the archive format
Definition: archive_version.hpp:44
libdar::cat_entree
the root class from all other inherite for any entry in the catalogue
Definition: cat_entree.hpp:85
cat_tools.hpp
set of routines used by catalogue related classes
libdar
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47