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

#include <RegistrySingleton.hh>

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

Public Types

typedef Registry::info_type info_type
 
typedef Registry::id_type id_type
 
typedef Registry::ascii_key_type ascii_key_type
 
typedef Registry::Info Info
 
typedef Registry::Info::indexing_type indexing_type
 

Public Member Functions

 SINGLETON_TS_DECL (RegistrySingleton)
 

Static Public Member Functions

static const info_type GetInfo (id_type Key)
 
static id_type Id (const ascii_key_type &Key)
 
static void OnDirectoryClose (DirectoryScanData &Data)
 
static id_type Register (const Info &Key)
 
static bool ScanForMatch (DirectoryScanData &Data)
 
static void TranslateQuery (const QueryParams &Params, QueryAnswer &Answer)
 

Static Public Attributes

static const id_type ID_NULL = 0
 

Private Types

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 LDASTools::AL::unordered_map< id_type, info_typeregistry_container_type
 

Private Member Functions

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

Static Private Attributes

static const id_type KEY_NULL = id_type( 0 )
 

Member Typedef Documentation

◆ ascii_key_type

◆ id_type

◆ indexing_type

◆ Info

◆ info_type

Member Function Documentation

◆ GetInfo()

const RegistrySingleton::info_type diskCache::Cache::RegistrySingleton::GetInfo ( id_type  Key)
inlinestatic

◆ Id()

RegistrySingleton::id_type diskCache::Cache::RegistrySingleton::Id ( const ascii_key_type Key)
inlinestatic

◆ OnDirectoryClose()

void diskCache::Cache::RegistrySingleton::OnDirectoryClose ( DirectoryScanData Data)
inlinestatic

◆ Register()

RegistrySingleton::id_type diskCache::Cache::RegistrySingleton::Register ( const Info Key)
inlinestatic

◆ ScanForMatch()

bool diskCache::Cache::RegistrySingleton::ScanForMatch ( DirectoryScanData Data)
inlinestatic

◆ SINGLETON_TS_DECL()

diskCache::Cache::RegistrySingleton::SINGLETON_TS_DECL ( RegistrySingleton  )

◆ TranslateQuery()

void diskCache::Cache::RegistrySingleton::TranslateQuery ( const QueryParams Params,
QueryAnswer Answer 
)
inlinestatic

Member Data Documentation

◆ ID_NULL

const RegistrySingleton::id_type diskCache::Cache::RegistrySingleton::ID_NULL = 0
static

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