ldas-tools-diskcacheAPI  2.6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | List of all members
diskCache::Cache::Registry Class Reference

#include <Registry.hh>

Inheritance diagram for diskCache::Cache::Registry:
diskCache::Common::Registry diskCache::Cache::RegistrySingleton

Classes

class  Info
 

Public Types

typedef boost::shared_ptr
< SearchInterface
indexing_type
 
typedef void(* FindFunc )(const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
typedef bool(* IsMatchFunc )(DirectoryScanData &Data)
 
typedef void(* OnDirectoryCloseFunc )(DirectoryScanData &Data)
 
typedef void(* TranslateQueryFunc )(const QueryParams &Params, QueryAnswer &Answer)
 
typedef INT_4U id_type
 
typedef std::string ascii_key_type
 
typedef boost::shared_ptr< Infoinfo_type
 

Public Member Functions

 Registry ()
 
void OnDirectoryClose (DirectoryScanData &Data)
 
id_type Register (const Info &Key)
 
bool ScanForMatch (DirectoryScanData &Data)
 
void TranslateQuery (const Cache::QueryParams &Params, Cache::QueryAnswer &Answer) const
 Translate a query. More...
 
id_type Register (const Info &Key)
 
id_type Id (const std::string &Name) const
 
const info_type GetInfo (id_type Id) const
 

Static Public Attributes

static const id_type KEY_NULL = id_type( 0 )
 

Protected Types

typedef
LDASTools::AL::unordered_map
< id_type, info_type
registry_container_type
 

Protected Member Functions

const registry_container_typeregistry () const
 

Member Typedef Documentation

typedef std::string diskCache::Common::Registry::ascii_key_type
inherited
typedef void(* diskCache::Cache::Registry::FindFunc)(const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
typedef INT_4U diskCache::Common::Registry::id_type
inherited
typedef boost::shared_ptr< Info > diskCache::Common::Registry::info_type
inherited
typedef bool(* diskCache::Cache::Registry::IsMatchFunc)(DirectoryScanData &Data)
typedef void(* diskCache::Cache::Registry::OnDirectoryCloseFunc)(DirectoryScanData &Data)
typedef LDASTools::AL::unordered_map< id_type, info_type > diskCache::Common::Registry::registry_container_type
protectedinherited
typedef void(* diskCache::Cache::Registry::TranslateQueryFunc)(const QueryParams &Params, QueryAnswer &Answer)

Constructor & Destructor Documentation

diskCache::Cache::Registry::Registry ( )
inline

Member Function Documentation

const Registry::info_type diskCache::Common::Registry::GetInfo ( id_type  Id) const
inlineinherited
Registry::id_type diskCache::Common::Registry::Id ( const std::string &  Name) const
inlineinherited
Todo:
This needs to be locked to be thread safe. It only needs to be locked with a read lock since it only queries the information.
void diskCache::Cache::Registry::OnDirectoryClose ( DirectoryScanData Data)

After all data has been read from the directory, this function is called to allow all search engines an oppertunity

Todo:
Associate the updated information with the cache
Registry::id_type diskCache::Common::Registry::Register ( const Info Key)
inherited
Todo:
Lock the registry because changes are going to happen
Registry::id_type diskCache::Cache::Registry::Register ( const Info Key)
const Registry::registry_container_type & diskCache::Common::Registry::registry ( ) const
inlineprotectedinherited
bool diskCache::Cache::Registry::ScanForMatch ( DirectoryScanData Data)
void diskCache::Cache::Registry::TranslateQuery ( const Cache::QueryParams Params,
Cache::QueryAnswer Answer 
) const

Translate a query.

Member Data Documentation

const id_type diskCache::Common::Registry::KEY_NULL = id_type( 0 )
staticinherited

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