ldas-tools-diskcacheAPI 2.7.7
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
diskCache::Cache::ExcludedPattern Class Reference

Manages set of filename exclusion patterns. More...

#include <ExcludedPattern.hh>

Inheritance diagram for diskCache::Cache::ExcludedPattern:
Inheritance graph
[legend]
Collaboration diagram for diskCache::Cache::ExcludedPattern:
Collaboration graph
[legend]

Public Types

typedef std::list< std::string > pattern_container_type
 
typedef pattern_container_type::value_type value_type
 
typedef std::list< std::string > pattern_container_type
 
typedef pattern_container_type::value_type value_type
 
typedef std::list< std::string > pattern_container_type
 
typedef pattern_container_type::value_type value_type
 

Public Member Functions

 ExcludedPattern ()
 
 ~ExcludedPattern ()
 
 ExcludedPattern ()
 
 ~ExcludedPattern ()
 
 ExcludedPattern ()
 
 ~ExcludedPattern ()
 

Static Public Member Functions

static const pattern_container_typeGet ()
 Retrieve collection of file name patterns to exclude. More...
 
static bool IsExcluded (const value_type &Filename)
 Check if the file should be excluded. More...
 
static void Update (const pattern_container_type &Patterns)
 Change the matching patterns. More...
 
static const pattern_container_typeGet ()
 Retrieve collection of file name patterns to exclude. More...
 
static bool IsExcluded (const value_type &Filename)
 Check if the file should be excluded. More...
 
static void Update (const pattern_container_type &Patterns)
 Change the matching patterns. More...
 
static const pattern_container_typeGet ()
 Retrieve collection of file name patterns to exclude. More...
 
static bool IsExcluded (const value_type &Filename)
 Check if the file should be excluded. More...
 
static void Update (const pattern_container_type &Patterns)
 Change the matching patterns. More...
 

Private Member Functions

const pattern_container_typeget () const
 
bool is_excluded (const value_type &Filename) const
 
void update (const pattern_container_type &Patterns)
 
const pattern_container_typeget () const
 
bool is_excluded (const value_type &Filename) const
 
void update (const pattern_container_type &Patterns)
 
const pattern_container_typeget () const
 
bool is_excluded (const value_type &Filename) const
 
void update (const pattern_container_type &Patterns)
 

Private Attributes

pattern_container_type readable_pattern
 
Regex pattern
 

Detailed Description

Manages set of filename exclusion patterns.

Member Typedef Documentation

◆ pattern_container_type [1/3]

◆ pattern_container_type [2/3]

◆ pattern_container_type [3/3]

◆ value_type [1/3]

typedef pattern_container_type::value_type diskCache::Cache::ExcludedPattern::value_type

◆ value_type [2/3]

typedef pattern_container_type::value_type diskCache::Cache::ExcludedPattern::value_type

◆ value_type [3/3]

typedef pattern_container_type::value_type diskCache::Cache::ExcludedPattern::value_type

Constructor & Destructor Documentation

◆ ExcludedPattern() [1/3]

diskCache::Cache::ExcludedPattern::ExcludedPattern ( )

◆ ~ExcludedPattern() [1/3]

diskCache::Cache::ExcludedPattern::~ExcludedPattern ( )

◆ ExcludedPattern() [2/3]

diskCache::Cache::ExcludedPattern::ExcludedPattern ( )

◆ ~ExcludedPattern() [2/3]

diskCache::Cache::ExcludedPattern::~ExcludedPattern ( )

◆ ExcludedPattern() [3/3]

diskCache::Cache::ExcludedPattern::ExcludedPattern ( )

◆ ~ExcludedPattern() [3/3]

diskCache::Cache::ExcludedPattern::~ExcludedPattern ( )

Member Function Documentation

◆ Get() [1/3]

static const pattern_container_type & diskCache::Cache::ExcludedPattern::Get ( )
static

Retrieve collection of file name patterns to exclude.

◆ Get() [2/3]

static const pattern_container_type & diskCache::Cache::ExcludedPattern::Get ( )
static

Retrieve collection of file name patterns to exclude.

◆ Get() [3/3]

static const pattern_container_type & diskCache::Cache::ExcludedPattern::Get ( )
static

Retrieve collection of file name patterns to exclude.

◆ get() [1/3]

const pattern_container_type & diskCache::Cache::ExcludedPattern::get ( ) const
private

◆ get() [2/3]

const pattern_container_type & diskCache::Cache::ExcludedPattern::get ( ) const
private

◆ get() [3/3]

const pattern_container_type & diskCache::Cache::ExcludedPattern::get ( ) const
private

◆ is_excluded() [1/3]

bool diskCache::Cache::ExcludedPattern::is_excluded ( const value_type Filename) const
private

◆ is_excluded() [2/3]

bool diskCache::Cache::ExcludedPattern::is_excluded ( const value_type Filename) const
private

◆ is_excluded() [3/3]

bool diskCache::Cache::ExcludedPattern::is_excluded ( const value_type Filename) const
private

◆ IsExcluded() [1/3]

static bool diskCache::Cache::ExcludedPattern::IsExcluded ( const value_type Filename)
static

Check if the file should be excluded.

Parameters
[in]FilenameName of file to be checked for exclusion
Returns
If Filename is to be excluded, then return true; false otherwise

◆ IsExcluded() [2/3]

static bool diskCache::Cache::ExcludedPattern::IsExcluded ( const value_type Filename)
static

Check if the file should be excluded.

Parameters
[in]FilenameName of file to be checked for exclusion
Returns
If Filename is to be excluded, then return true; false otherwise

◆ IsExcluded() [3/3]

static bool diskCache::Cache::ExcludedPattern::IsExcluded ( const value_type Filename)
static

Check if the file should be excluded.

Parameters
[in]FilenameName of file to be checked for exclusion
Returns
If Filename is to be excluded, then return true; false otherwise

◆ Update() [1/3]

static void diskCache::Cache::ExcludedPattern::Update ( const pattern_container_type Patterns)
static

Change the matching patterns.

Parameters
[in]PatternsList of patterns that descibe the files which should be excluded (ex: ".*[.]tmp")
Returns
If Filename is to be excluded, then return true; false otherwise

◆ update() [1/3]

void diskCache::Cache::ExcludedPattern::update ( const pattern_container_type Patterns)
private

◆ Update() [2/3]

static void diskCache::Cache::ExcludedPattern::Update ( const pattern_container_type Patterns)
static

Change the matching patterns.

Parameters
[in]PatternsList of patterns that descibe the files which should be excluded (ex: ".*[.]tmp")
Returns
If Filename is to be excluded, then return true; false otherwise

◆ update() [2/3]

void diskCache::Cache::ExcludedPattern::update ( const pattern_container_type Patterns)
private

◆ Update() [3/3]

static void diskCache::Cache::ExcludedPattern::Update ( const pattern_container_type Patterns)
static

Change the matching patterns.

Parameters
[in]PatternsList of patterns that descibe the files which should be excluded (ex: ".*[.]tmp")
Returns
If Filename is to be excluded, then return true; false otherwise

◆ update() [3/3]

void diskCache::Cache::ExcludedPattern::update ( const pattern_container_type Patterns)
private

Member Data Documentation

◆ pattern

Regex diskCache::Cache::ExcludedPattern::pattern
private

◆ readable_pattern

pattern_container_type diskCache::Cache::ExcludedPattern::readable_pattern
private

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