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

the class ea_attributs manages the set of EA that can be associated to an inode More...

#include <ea.hpp>

+ Collaboration diagram for libdar::ea_attributs:

Public Member Functions

 ea_attributs (generic_file &f, const archive_version &edit)
 
 ea_attributs (const ea_attributs &ref)
 
 ea_attributs (ea_attributs &&ref) noexcept
 
ea_attributsoperator= (const ea_attributs &ref)
 
ea_attributsoperator= (ea_attributs &&ref) noexcept
 
bool operator== (const ea_attributs &ref) const
 
void dump (generic_file &f) const
 
void add (const std::string &key, const std::string &value)
 
void reset_read () const
 
bool read (std::string &key, std::string &value) const
 
infinint size () const
 
void clear ()
 
bool find (const std::string &key, std::string &found_value) const
 
bool diff (const ea_attributs &other, const mask &filter) const
 
infinint space_used () const
 
ea_attributs operator+ (const ea_attributs &arg) const
 addition operator. More...
 

Private Attributes

std::map< std::string, std::string > attr
 
std::map< std::string, std::string >::const_iterator alire
 

Detailed Description

the class ea_attributs manages the set of EA that can be associated to an inode

Definition at line 48 of file ea.hpp.

Member Function Documentation

◆ operator+()

ea_attributs libdar::ea_attributs::operator+ ( const ea_attributs arg) const

addition operator.

Parameters
[in]argea_attributs to add to self
Returns
a ea_attributs object containing all EA of the current object enriched and possibly overwritten by those of "arg".
Note
this operator is not reflexive (or symetrical if you prefer) unlike it is in arithmetic. Here instead "a + b" is possibly not equal to "b + a"

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