Disk ARchive  2.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Member Functions | List of all members
libdar::archive_options_isolate Class Reference

class holding optional parameters used to isolate an existing archive More...

#include <archive_options.hpp>

Public Member Functions

void clear ()
 
void set_allow_over (bool allow_over)
 whether overwritting is allowed
 
void set_warn_over (bool warn_over)
 whether a warning shall be issued before overwriting
 
void set_info_details (bool info_details)
 whether the user needs detailed output of the operation
 
void set_pause (const infinint &pause)
 Pause beteween slices. Set to zero does not pause at all, set to 1 makes libdar pauses each slice, set to 2 makes libdar pause each 2 slices and so on.
 
void set_compression (compression algo)
 the compression algorithm used
 
void set_compression_level (U_I compression_level)
 the compression level (from 1 to 9)
 
void set_slicing (const infinint &file_size, const infinint &first_file_size=0)
 define the archive slicing
 
void set_execute (const std::string &execute)
 command to execute after each slice creation
 
void set_crypto_algo (crypto_algo crypto)
 cypher to use
 
void set_crypto_pass (const secu_string &pass)
 password / passphrase to encrypt the data with (empty string for interactive question)
 
void set_crypto_size (U_32 crypto_size)
 size of the encryption by block to use
 
void set_empty (bool empty)
 whether to make a dry-run operation
 
void set_slice_permission (const std::string &slice_permission)
 if not an empty string set the slice permission according to the octal value given.
 
void set_slice_user_ownership (const std::string &slice_user_ownership)
 if not an empty string set the user ownership of slices accordingly
 
void set_slice_group_ownership (const std::string &slice_group_ownership)
 if not an empty string set the group ownership of slices accordingly
 
void set_user_comment (const std::string &comment)
 specify a user comment in the archive (always in clear text!)
 
void set_hash_algo (hash_algo hash)
 specify whether to produce a hash file of the slice and which hash algo to use
 
void set_slice_min_digits (infinint val)
 defines the minimum digit a slice must have concerning its number, zeros will be prepended as much as necessary to respect this
 
void set_sequential_marks (bool sequential)
 whether to add escape sequence aka tape marks to allow sequential reading of the archive
 
bool get_allow_over () const
 
bool get_warn_over () const
 
bool get_info_details () const
 
const infinintget_pause () const
 
compression get_compression () const
 
U_I get_compression_level () const
 
const infinintget_slice_size () const
 
const infinintget_first_slice_size () const
 
const std::string & get_execute () const
 
crypto_algo get_crypto_algo () const
 
const secu_stringget_crypto_pass () const
 
U_32 get_crypto_size () const
 
bool get_empty () const
 
const std::string & get_slice_permission () const
 
const std::string & get_slice_user_ownership () const
 
const std::string & get_slice_group_ownership () const
 
const std::string & get_user_comment () const
 
hash_algo get_hash_algo () const
 
infinint get_slice_min_digits () const
 
bool get_sequential_marks () const
 

Detailed Description

class holding optional parameters used to isolate an existing archive

Definition at line 524 of file archive_options.hpp.

Member Function Documentation

void libdar::archive_options_isolate::set_slicing ( const infinint file_size,
const infinint first_file_size = 0 
)
inline

define the archive slicing

Parameters
[in]file_sizeset the slice size in byte (0 for a single slice whatever its size is)
[in]first_file_sizeset the first file size
Note
if not specified or set to zero, first_file_size is considered equal to file_size

Definition at line 557 of file archive_options.hpp.


The documentation for this class was generated from the following file: