Disk ARchive  2.5.2
Full featured and portable backup and archiving tool
fsa_family.hpp
Go to the documentation of this file.
00001 /*********************************************************************/
00002 // dar - disk archive - a backup/restoration program
00003 // Copyright (C) 2002-2052 Denis Corbin
00004 //
00005 // This program is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (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, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 //
00019 // to contact the author : http://dar.linux.free.fr/email.html
00020 /*********************************************************************/
00021 
00025 
00026 #ifndef FSA_FAMILY_HPP
00027 #define FSA_FAMILY_HPP
00028 
00029 #include <string>
00030 #include <set>
00031 
00032 #include "integers.hpp"
00033 #include "crc.hpp"
00034 
00035 namespace libdar
00036 {
00039 
00040 
00042     enum fsa_family { fsaf_hfs_plus, fsaf_linux_extX };
00043     // note: adding new fsa_family need updating all_fsa_family()
00044 
00046     enum fsa_nature { fsan_unset,
00047               fsan_creation_date,
00048               fsan_append_only,
00049               fsan_compressed,
00050               fsan_no_dump,
00051               fsan_immutable,
00052               fsan_data_journaling,
00053               fsan_secure_deletion,
00054               fsan_no_tail_merging,
00055               fsan_undeletable,
00056               fsan_noatime_update,
00057               fsan_synchronous_directory,
00058               fsan_synchronous_update,
00059               fsan_top_of_dir_hierarchy };
00060 
00061     extern std::string fsa_family_to_string(fsa_family f);
00062     extern std::string fsa_nature_to_string(fsa_nature n);
00063 
00064     typedef std::set<fsa_family> fsa_scope;
00065 
00067     extern fsa_scope all_fsa_families();
00068 
00069     extern infinint fsa_scope_to_infinint(const fsa_scope & val);
00070     extern fsa_scope infinint_to_fsa_scope(const infinint & ref);
00071     extern std::string fsa_scope_to_string(bool saved, const fsa_scope & scope);
00072 
00074 
00075 } // end of namespace
00076 
00077 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines