Disk ARchive  2.7.14
Full featured and portable backup and archiving tool
Public Member Functions | Private Attributes | List of all members
libdar::contextual Class Referenceabstract

the contextual class adds the information of phases in the generic_file More...

#include <contextual.hpp>

+ Inheritance diagram for libdar::contextual:
+ Collaboration diagram for libdar::contextual:

Public Member Functions

 contextual (const contextual &ref)=default
 
 contextual (contextual &&ref) noexcept=default
 
contextualoperator= (const contextual &ref)=default
 
contextualoperator= (contextual &&ref) noexcept=default
 
virtual void set_info_status (const std::string &s)
 defines the new contextual value More...
 
virtual std::string get_info_status () const
 get the current contextual value
 
virtual bool is_an_old_start_end_archive () const =0
 returns whether the archive is a old archive (format < 8)
 
virtual const labelget_data_name () const =0
 obtain the data_name of the archive (label associated with the archive's data) More...
 

Private Attributes

std::string status
 

Detailed Description

the contextual class adds the information of phases in the generic_file

several phases are defined like for example

these are used to help the command launched between slices to decide the action to do depending on the context when reading an archive (first slice / last slice read, ...) the context must also be transfered to dar_slave through the pair of tuyau objects

this class also support some additional informations common to all 'level1' layer of archive, such as:

Definition at line 73 of file contextual.hpp.

Member Function Documentation

◆ get_data_name()

virtual const label& libdar::contextual::get_data_name ( ) const
pure virtual

obtain the data_name of the archive (label associated with the archive's data)

Note
label are conserved with dar_xform and archive isolation, but are not with archive merging or archive creation (full or differential backup)

Implemented in libdar::zapette, libdar::trontextual, libdar::trivial_sar, and libdar::sar.

◆ set_info_status()

virtual void libdar::contextual::set_info_status ( const std::string &  s)
inlinevirtual

defines the new contextual value

Note
inherited class may redefine this call but but must call the parent method to set the value contextual:set_info_status()

Reimplemented in libdar::zapette.

Definition at line 88 of file contextual.hpp.


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