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

This class has the cache of directory information. More...

#include <SDGTx.hh>

Inheritance diagram for diskCache::Cache::SDGTx::DirectoryInfo:
Inheritance graph
[legend]
Collaboration diagram for diskCache::Cache::SDGTx::DirectoryInfo:
Collaboration graph
[legend]

Classes

class  OverlappingFileError
 

Public Types

typedef DirectoryScanData::scan_data::size_type size_type
 
typedef boost::shared_ptr< Streams::Streamableread_return_type
 
typedef std::string extension_type
 
typedef std::string site_type
 
typedef std::string desc_type
 
typedef std::string site_desc_type
 
typedef INT_4U time_type
 
typedef INT_4U dt_type
 
typedef DirectoryScanData::scan_data::size_type size_type
 
typedef boost::shared_ptr< Streams::Streamableread_return_type
 
typedef std::string extension_type
 
typedef std::string site_type
 
typedef std::string desc_type
 
typedef std::string site_desc_type
 
typedef INT_4U time_type
 
typedef INT_4U dt_type
 
typedef DirectoryScanData::scan_data::size_type size_type
 
typedef boost::shared_ptr< Streams::Streamableread_return_type
 
typedef std::string extension_type
 
typedef std::string site_type
 
typedef std::string desc_type
 
typedef std::string site_desc_type
 
typedef INT_4U time_type
 
typedef INT_4U dt_type
 

Public Member Functions

 DirectoryInfo ()
 
void AddFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration)
 
virtual size_type Count () const
 
void Find (const Directory &Dir, QueryAnswer &Answer) const
 
bool FindFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration) const
 
bool Overlap (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
 
template<class WriterT >
void Write (WriterT &Stream) const
 
 DirectoryInfo ()
 
void AddFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration)
 
virtual size_type Count () const
 
void Find (const Directory &Dir, QueryAnswer &Answer) const
 
bool FindFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration) const
 
bool Overlap (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
 
template<class WriterT >
void Write (WriterT &Stream) const
 
 DirectoryInfo ()
 
void AddFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration)
 
virtual size_type Count () const
 
void Find (const Directory &Dir, QueryAnswer &Answer) const
 
bool FindFile (const extension_type &Extension, const site_type &Site, const desc_type &Description, const time_type Start, const dt_type Duration) const
 
bool Overlap (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
 
template<class WriterT >
void Write (WriterT &Stream) const
 
template<>
void Write (Streams::OASCII &Stream) const
 
template<>
SDGTx::DirectoryInfo::read_return_type Read (Streams::IBinary &Stream)
 
template<>
void Write (Streams::OBinary &Stream) const
 

Static Public Member Functions

template<class ReaderT >
static read_return_type Read (ReaderT &Stream)
 
template<class ReaderT >
static read_return_type Read (ReaderT &Stream)
 
template<class ReaderT >
static read_return_type Read (ReaderT &Stream)
 

Private Types

typedef std::pair< time_type, dt_typeduration_type
 holder for end time and delta T elements More...
 
typedef std::map< time_type, duration_typeinterval_container_type
 holder for start time and duration information More...
 
typedef std::map< site_desc_type, interval_container_typesite_desc_container_type
 holder for site/description and interval data. More...
 
typedef std::map< extension_type, site_desc_container_typeextension_container_type
 holder for extension and site/description data More...
 
typedef extension_container_type cache_container_type
 Alias for the top level cache container. More...
 
typedef std::pair< time_type, dt_typeduration_type
 holder for end time and delta T elements More...
 
typedef std::map< time_type, duration_typeinterval_container_type
 holder for start time and duration information More...
 
typedef std::map< site_desc_type, interval_container_typesite_desc_container_type
 holder for site/description and interval data. More...
 
typedef std::map< extension_type, site_desc_container_typeextension_container_type
 holder for extension and site/description data More...
 
typedef extension_container_type cache_container_type
 Alias for the top level cache container. More...
 
typedef std::pair< time_type, dt_typeduration_type
 holder for end time and delta T elements More...
 
typedef std::map< time_type, duration_typeinterval_container_type
 holder for start time and duration information More...
 
typedef std::map< site_desc_type, interval_container_typesite_desc_container_type
 holder for site/description and interval data. More...
 
typedef std::map< extension_type, site_desc_container_typeextension_container_type
 holder for extension and site/description data More...
 
typedef extension_container_type cache_container_type
 Alias for the top level cache container. More...
 

Private Member Functions

 DirectoryInfo (cache_container_type &Source)
 Constructor used primarily when reading from a stream. More...
 
 DirectoryInfo (cache_container_type &Source)
 Constructor used primarily when reading from a stream. More...
 
 DirectoryInfo (cache_container_type &Source)
 Constructor used primarily when reading from a stream. More...
 

Private Attributes

cache_container_type m_cache
 Cache of matching files from a single directory. More...
 

Detailed Description

This class has the cache of directory information.

Member Typedef Documentation

◆ cache_container_type [1/3]

Alias for the top level cache container.

◆ cache_container_type [2/3]

Alias for the top level cache container.

◆ cache_container_type [3/3]

Alias for the top level cache container.

◆ desc_type [1/3]

◆ desc_type [2/3]

◆ desc_type [3/3]

◆ dt_type [1/3]

◆ dt_type [2/3]

◆ dt_type [3/3]

◆ duration_type [1/3]

holder for end time and delta T elements

◆ duration_type [2/3]

holder for end time and delta T elements

◆ duration_type [3/3]

holder for end time and delta T elements

◆ extension_container_type [1/3]

holder for extension and site/description data

◆ extension_container_type [2/3]

holder for extension and site/description data

◆ extension_container_type [3/3]

holder for extension and site/description data

◆ extension_type [1/3]

◆ extension_type [2/3]

◆ extension_type [3/3]

◆ interval_container_type [1/3]

holder for start time and duration information

◆ interval_container_type [2/3]

holder for start time and duration information

◆ interval_container_type [3/3]

holder for start time and duration information

◆ read_return_type [1/3]

◆ read_return_type [2/3]

◆ read_return_type [3/3]

◆ site_desc_container_type [1/3]

holder for site/description and interval data.

◆ site_desc_container_type [2/3]

holder for site/description and interval data.

◆ site_desc_container_type [3/3]

holder for site/description and interval data.

◆ site_desc_type [1/3]

◆ site_desc_type [2/3]

◆ site_desc_type [3/3]

◆ site_type [1/3]

◆ site_type [2/3]

◆ site_type [3/3]

◆ size_type [1/3]

typedef DirectoryScanData::scan_data::size_type diskCache::Cache::SDGTx::DirectoryInfo::size_type

◆ size_type [2/3]

typedef DirectoryScanData::scan_data::size_type diskCache::Cache::SDGTx::DirectoryInfo::size_type

◆ size_type [3/3]

typedef DirectoryScanData::scan_data::size_type diskCache::Cache::SDGTx::DirectoryInfo::size_type

◆ time_type [1/3]

◆ time_type [2/3]

◆ time_type [3/3]

Constructor & Destructor Documentation

◆ DirectoryInfo() [1/6]

diskCache::Cache::SDGTx::DirectoryInfo::DirectoryInfo ( )

◆ DirectoryInfo() [2/6]

diskCache::Cache::SDGTx::DirectoryInfo::DirectoryInfo ( cache_container_type Source)
private

Constructor used primarily when reading from a stream.

Parameters
[in,out]SourceThis is the new contents of the cache. The old contents are returned as a side effect.

◆ DirectoryInfo() [3/6]

diskCache::Cache::SDGTx::DirectoryInfo::DirectoryInfo ( )

◆ DirectoryInfo() [4/6]

diskCache::Cache::SDGTx::DirectoryInfo::DirectoryInfo ( cache_container_type Source)
private

Constructor used primarily when reading from a stream.

Parameters
[in,out]SourceThis is the new contents of the cache. The old contents are returned as a side effect.

◆ DirectoryInfo() [5/6]

diskCache::Cache::SDGTx::DirectoryInfo::DirectoryInfo ( )

◆ DirectoryInfo() [6/6]

diskCache::Cache::SDGTx::DirectoryInfo::DirectoryInfo ( cache_container_type Source)
private

Constructor used primarily when reading from a stream.

Parameters
[in,out]SourceThis is the new contents of the cache. The old contents are returned as a side effect.

Member Function Documentation

◆ AddFile() [1/3]

void diskCache::Cache::SDGTx::DirectoryInfo::AddFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
)

◆ AddFile() [2/3]

void diskCache::Cache::SDGTx::DirectoryInfo::AddFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
)

◆ AddFile() [3/3]

void diskCache::Cache::SDGTx::DirectoryInfo::AddFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
)

◆ Count() [1/3]

SDGTx::DirectoryInfo::size_type diskCache::Cache::SDGTx::DirectoryInfo::Count ( ) const
virtual

◆ Count() [2/3]

virtual size_type diskCache::Cache::SDGTx::DirectoryInfo::Count ( ) const
virtual

◆ Count() [3/3]

virtual size_type diskCache::Cache::SDGTx::DirectoryInfo::Count ( ) const
virtual

◆ Find() [1/3]

void diskCache::Cache::SDGTx::DirectoryInfo::Find ( const Directory Dir,
QueryAnswer Answer 
) const
Todo:
Do a regular expression comparison

◆ Find() [2/3]

void diskCache::Cache::SDGTx::DirectoryInfo::Find ( const Directory Dir,
QueryAnswer Answer 
) const

◆ Find() [3/3]

void diskCache::Cache::SDGTx::DirectoryInfo::Find ( const Directory Dir,
QueryAnswer Answer 
) const

◆ FindFile() [1/3]

bool diskCache::Cache::SDGTx::DirectoryInfo::FindFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
) const

◆ FindFile() [2/3]

bool diskCache::Cache::SDGTx::DirectoryInfo::FindFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
) const

◆ FindFile() [3/3]

bool diskCache::Cache::SDGTx::DirectoryInfo::FindFile ( const extension_type Extension,
const site_type Site,
const desc_type Description,
const time_type  Start,
const dt_type  Duration 
) const

◆ Overlap() [1/3]

bool diskCache::Cache::SDGTx::DirectoryInfo::Overlap ( 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

◆ Overlap() [2/3]

bool diskCache::Cache::SDGTx::DirectoryInfo::Overlap ( 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

◆ Overlap() [3/3]

bool diskCache::Cache::SDGTx::DirectoryInfo::Overlap ( 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

◆ Read() [1/4]

template<class ReaderT >
static read_return_type diskCache::Cache::SDGTx::DirectoryInfo::Read ( ReaderT &  Stream)
static

◆ Read() [2/4]

template<class ReaderT >
static read_return_type diskCache::Cache::SDGTx::DirectoryInfo::Read ( ReaderT &  Stream)
static

◆ Read() [3/4]

template<class ReaderT >
static read_return_type diskCache::Cache::SDGTx::DirectoryInfo::Read ( ReaderT &  Stream)
static

◆ Read() [4/4]

template<>
SDGTx::DirectoryInfo::read_return_type diskCache::Cache::SDGTx::DirectoryInfo::Read ( Streams::IBinary Stream)

◆ Write() [1/5]

template<>
void diskCache::Cache::SDGTx::DirectoryInfo::Write ( Streams::OASCII Stream) const

◆ Write() [2/5]

template<>
void diskCache::Cache::SDGTx::DirectoryInfo::Write ( Streams::OBinary Stream) const

◆ Write() [3/5]

template<class WriterT >
void diskCache::Cache::SDGTx::DirectoryInfo::Write ( WriterT &  Stream) const

◆ Write() [4/5]

template<class WriterT >
void diskCache::Cache::SDGTx::DirectoryInfo::Write ( WriterT &  Stream) const

◆ Write() [5/5]

template<class WriterT >
void diskCache::Cache::SDGTx::DirectoryInfo::Write ( WriterT &  Stream) const

Member Data Documentation

◆ m_cache

cache_container_type diskCache::Cache::SDGTx::DirectoryInfo::m_cache
private

Cache of matching files from a single directory.


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