Disk ARchive  2.5.2
Full featured and portable backup and archiving tool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
libdar::bool_mask Class Reference

boolean mask, either always true or false More...

#include <mask.hpp>

Inherits libdar::mask.

List of all members.

Public Member Functions

 bool_mask (bool always)
 the constructor
bool is_covered (const std::string &expression) const
 inherited from the mask class
bool is_covered (const path &chemin) const
 check whether the given path is covered by the mask
maskclone () const
 inherited from the mask class

Detailed Description

boolean mask, either always true or false

it matches all files or no files at all

Definition at line 90 of file mask.hpp.


Constructor & Destructor Documentation

libdar::bool_mask::bool_mask ( bool  always) [inline]

the constructor

Parameters:
[in]alwaysis the value that this mask will always return when the is_covered method will be used
Note:
once initialized an object cannot change its behavior

Definition at line 98 of file mask.hpp.

Referenced by clone().


Member Function Documentation

bool libdar::bool_mask::is_covered ( const path chemin) const [inline, virtual]

check whether the given path is covered by the mask

Parameters:
[in]cheminis the path to check
Returns:
true if the given path is covered by the mask
Note:
only libdar internally needs to call this method
this is an optional method to the previous one, it can be overwritten

Reimplemented from libdar::mask.

Definition at line 102 of file mask.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines