ldas-tools-diskcacheAPI  2.7.2
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
anonymous_namespace{SDGTx.cc}::ScanData Struct Reference
Inheritance diagram for anonymous_namespace{SDGTx.cc}::ScanData:
Inheritance graph
[legend]
Collaboration diagram for anonymous_namespace{SDGTx.cc}::ScanData:
Collaboration graph
[legend]

Public Types

typedef DirectoryInfo verified_file_cache_type
 
typedef DirectoryScanData::scan_data scan_data
 
typedef DirectoryInfo::extension_type extension_type
 
typedef DirectoryInfo::site_type site_type
 
typedef DirectoryInfo::desc_type desc_type
 
typedef DirectoryInfo::site_desc_type site_desc_type
 
typedef DirectoryInfo::time_type time_type
 
typedef DirectoryInfo::dt_type dt_type
 
typedef std::map< time_type, time_typeinterval_type
 
typedef unordered_map< dt_type, interval_typedt_cache_type
 
typedef unordered_map< desc_type, dt_cache_typedesc_cache_type
 
typedef unordered_map< site_type, desc_cache_typesite_cache_type
 
typedef unordered_map< extension_type, site_cache_typeextension_cache_type
 
typedef Directory::search_data_type search_data_type
 
typedef Directory::search_data_type search_data_type
 
typedef Directory::search_data_type search_data_type
 
typedef INT_4U size_type
 
typedef INT_4U size_type
 
typedef INT_4U size_type
 

Public Member Functions

 ScanData ()
 Constructor. More...
 
virtual scan_dataClone () const
 Virtual constructor. More...
 
void AddNewFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration)
 Add a file to the cache of files to be validated. More...
 
INT_4U AddOldFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration)
 Add a file to the cache of known files. More...
 
virtual size_type Count () const
 
bool FindFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration) const
 Search if a file exists in the cache. More...
 
bool FindUnderMountPoint (const diskCache::Cache::DirectoryManager &DirManager, const std::string &Root, diskCache::Cache::SDGTx::OverlapHandler &Overlaps, const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration) const
 locate a file under the same mount point More...
 
bool Overlap (diskCache::Cache::SDGTx::OverlapHandler &Overlaps, const std::string &DirectoryName, const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration) const
 Detect overlap. More...
 
virtual search_data_type SearchData ()
 Return the local information about the directory. More...
 
const DirectoryManager & DirManager () const
 Retrieve the collection of directories. More...
 
const DirectoryManager & DirManager () const
 Retrieve the collection of directories. More...
 
const DirectoryManager & DirManager () const
 Retrieve the collection of directories. More...
 
const std::string & Root () const
 Retrieve the collection of directories. More...
 
const std::string & Root () const
 Retrieve the collection of directories. More...
 
const std::string & Root () const
 Retrieve the collection of directories. More...
 

Public Attributes

extension_cache_type s_new_cache_data
 
verified_file_cache_types_verified_file_cache_data
 

Private Attributes

search_data_type s_search_data
 

Member Typedef Documentation

◆ desc_cache_type

typedef unordered_map< desc_type, dt_cache_type > anonymous_namespace{SDGTx.cc}::ScanData::desc_cache_type

◆ desc_type

typedef DirectoryInfo::desc_type anonymous_namespace{SDGTx.cc}::ScanData::desc_type

◆ dt_cache_type

typedef unordered_map< dt_type, interval_type > anonymous_namespace{SDGTx.cc}::ScanData::dt_cache_type

◆ dt_type

typedef DirectoryInfo::dt_type anonymous_namespace{SDGTx.cc}::ScanData::dt_type

◆ extension_cache_type

typedef unordered_map< extension_type, site_cache_type > anonymous_namespace{SDGTx.cc}::ScanData::extension_cache_type

◆ extension_type

◆ interval_type

typedef std::map< time_type, time_type > anonymous_namespace{SDGTx.cc}::ScanData::interval_type

◆ scan_data

◆ search_data_type [1/3]

typedef Directory::search_data_type diskCache::Cache::DirectoryScanData::scan_data::search_data_type
inherited

◆ search_data_type [2/3]

typedef Directory::search_data_type diskCache::Cache::DirectoryScanData::scan_data::search_data_type
inherited

◆ search_data_type [3/3]

typedef Directory::search_data_type diskCache::Cache::DirectoryScanData::scan_data::search_data_type
inherited

◆ site_cache_type

typedef unordered_map< site_type, desc_cache_type > anonymous_namespace{SDGTx.cc}::ScanData::site_cache_type

◆ site_desc_type

◆ site_type

typedef DirectoryInfo::site_type anonymous_namespace{SDGTx.cc}::ScanData::site_type

◆ size_type [1/3]

typedef INT_4U diskCache::Cache::DirectoryScanData::scan_data::size_type
inherited

◆ size_type [2/3]

typedef INT_4U diskCache::Cache::DirectoryScanData::scan_data::size_type
inherited

◆ size_type [3/3]

typedef INT_4U diskCache::Cache::DirectoryScanData::scan_data::size_type
inherited

◆ time_type

typedef DirectoryInfo::time_type anonymous_namespace{SDGTx.cc}::ScanData::time_type

◆ verified_file_cache_type

Constructor & Destructor Documentation

◆ ScanData()

anonymous_namespace{SDGTx.cc}::ScanData::ScanData ( )

Constructor.

Member Function Documentation

◆ AddNewFile()

void anonymous_namespace{SDGTx.cc}::ScanData::AddNewFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
)

Add a file to the cache of files to be validated.

Parameters
[in]ExtensionThe filename extension to be added
[in]SiteThe IFO information to be added
[in]DescriptionThe description information to be added
[in]StartThe start time to be added
[in]DurationThe delta time to be added

◆ AddOldFile()

INT_4U anonymous_namespace{SDGTx.cc}::ScanData::AddOldFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
)

Add a file to the cache of known files.

Parameters
[in]ExtensionThe filename extension to be added
[in]SiteThe IFO information to be added
[in]DescriptionThe description information to be added
[in]StartThe start time to be added
[in]DurationThe delta time to be added

◆ Clone()

ScanData::scan_data * anonymous_namespace{SDGTx.cc}::ScanData::Clone ( ) const
virtual

Virtual constructor.

Create a new instance of the parent.

Implements diskCache::Cache::DirectoryScanData::scan_data.

◆ Count()

ScanData::size_type anonymous_namespace{SDGTx.cc}::ScanData::Count ( ) const
virtual

◆ DirManager() [1/3]

const DirectoryManager& diskCache::Cache::DirectoryScanData::scan_data::DirManager ( ) const
inherited

Retrieve the collection of directories.

◆ DirManager() [2/3]

const DirectoryManager& diskCache::Cache::DirectoryScanData::scan_data::DirManager ( ) const
inherited

Retrieve the collection of directories.

◆ DirManager() [3/3]

const DirectoryManager& diskCache::Cache::DirectoryScanData::scan_data::DirManager ( ) const
inherited

Retrieve the collection of directories.

◆ FindFile()

bool anonymous_namespace{SDGTx.cc}::ScanData::FindFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
) const

Search if a file exists in the cache.

Parameters
[in]ExtensionThe filename extension to be found
[in]SiteThe IFO information to be found
[in]DescriptionThe description information to be found
[in]StartThe start time to be found
[in]DurationThe delta time to be found
Returns
If an entry is found matching all criteria, then the value true is returned; false otherwise.

◆ FindUnderMountPoint()

bool anonymous_namespace{SDGTx.cc}::ScanData::FindUnderMountPoint ( const diskCache::Cache::DirectoryManager DirManager,
const std::string &  Root,
diskCache::Cache::SDGTx::OverlapHandler Overlaps,
const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
) const

locate a file under the same mount point

◆ Overlap()

bool anonymous_namespace{SDGTx.cc}::ScanData::Overlap ( diskCache::Cache::SDGTx::OverlapHandler Overlaps,
const std::string &  DirectoryName,
const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
) const

Detect overlap.

Parameters
[in]ExtensionThe filename extension to be found
[in]SiteThe IFO information to be found
[in]DescriptionThe description information to be found
[in]StartThe start time to be found
[in]DurationThe delta time to be found
Returns
Return true if the file with the given characteristics overlaps existing data.

◆ Root() [1/3]

const std::string& diskCache::Cache::DirectoryScanData::scan_data::Root ( ) const
inherited

Retrieve the collection of directories.

◆ Root() [2/3]

const std::string& diskCache::Cache::DirectoryScanData::scan_data::Root ( ) const
inherited

Retrieve the collection of directories.

◆ Root() [3/3]

const std::string& diskCache::Cache::DirectoryScanData::scan_data::Root ( ) const
inherited

Retrieve the collection of directories.

◆ SearchData()

virtual search_data_type anonymous_namespace{SDGTx.cc}::ScanData::SearchData ( )
inlinevirtual

Return the local information about the directory.

Returns
The local informatioin about the directory

Implements diskCache::Cache::DirectoryScanData::scan_data.

Member Data Documentation

◆ s_new_cache_data

extension_cache_type anonymous_namespace{SDGTx.cc}::ScanData::s_new_cache_data

◆ s_search_data

search_data_type anonymous_namespace{SDGTx.cc}::ScanData::s_search_data
private

◆ s_verified_file_cache_data

verified_file_cache_type* anonymous_namespace{SDGTx.cc}::ScanData::s_verified_file_cache_data

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