ldas-tools-diskcacheAPI  2.5.6
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
diskCache::Cache::Registry::Info Class Referenceabstract

#include <Registry.hh>

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

Public Types

typedef Registry::indexing_type indexing_type
 

Public Member Functions

 Info (const std::string &Key, FindFunc Find, IsMatchFunc IsMatch, OnDirectoryCloseFunc OnDirectoryClose, TranslateQueryFunc TranslateQuery)
 Constructor. More...
 
void Find (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer) const
 
bool IsMatch (DirectoryScanData &Data) const
 Called per file. More...
 
void OnDirectoryClose (DirectoryScanData &Data) const
 Callback once all data has been read. More...
 
void TranslateQuery (const QueryParams &Params, QueryAnswer &Answer) const
 
virtual InfoClone () const =0
 

Public Attributes

const ascii_key_type m_key_name
 

Static Public Attributes

static const FindFunc FIND_FUNC_NULL = (Registry::FindFunc)NULL
 
static const IsMatchFunc IS_MATCH_FUNC_NULL = (Registry::IsMatchFunc)NULL
 
static const OnDirectoryCloseFunc ON_DIRECTORY_CLOSE_FUNC_NULL = (Registry::OnDirectoryCloseFunc)NULL
 
static const TranslateQueryFunc TRANSLATE_QUERY_FUNC_NULL = (Registry::TranslateQueryFunc)NULL
 

Protected Member Functions

 Info (const Info &Source)
 

Member Typedef Documentation

◆ indexing_type

Constructor & Destructor Documentation

◆ Info() [1/2]

diskCache::Cache::Registry::Info::Info ( const std::string &  Key,
FindFunc  Find,
IsMatchFunc  IsMatch,
OnDirectoryCloseFunc  OnDirectoryClose,
TranslateQueryFunc  TranslateQuery 
)

Constructor.

Parameters
[in]Key
[in]FindSpecify the function to use to locate files within a directory.
[in]IsMatchFunction to call to check if a file should be indexed by the search engine.
[in]OnDirectoryCloseFunction to call once all entries in the current directory have been processed. If the search engine has no action, then the value ON_DIRECTORY_CLOSE_FUNC_NULL may be passed.
[in]TranslateQueryTranslate the query results (eg: make it easily parsable by TCL, Python, etc.).
Returns
New instance of the object

◆ Info() [2/2]

diskCache::Cache::Registry::Info::Info ( const Info Source)
protected

Member Function Documentation

◆ Clone()

virtual Info* diskCache::Common::Registry::Info::Clone ( ) const
pure virtualinherited

◆ Find()

void diskCache::Cache::Registry::Info::Find ( const Streams::Streamable Source,
const Directory Dir,
QueryAnswer Answer 
) const

◆ IsMatch()

bool diskCache::Cache::Registry::Info::IsMatch ( DirectoryScanData Data) const
inline

Called per file.

Parameters
[in,out]DataSearch engine specific data. This is also a scratch area for search engines to record transient information related to processing the directory contents.

◆ OnDirectoryClose()

void diskCache::Cache::Registry::Info::OnDirectoryClose ( DirectoryScanData Data) const
inline

Callback once all data has been read.

Parameters
[in,out]DataSearch engine specific data. This is also a scratch area for search engines to record transient information related to processing the directory contents.

◆ TranslateQuery()

void diskCache::Cache::Registry::Info::TranslateQuery ( const QueryParams Params,
QueryAnswer Answer 
) const
inline

Member Data Documentation

◆ FIND_FUNC_NULL

const Registry::FindFunc diskCache::Cache::Registry::Info::FIND_FUNC_NULL = (Registry::FindFunc)NULL
static

◆ IS_MATCH_FUNC_NULL

const Registry::IsMatchFunc diskCache::Cache::Registry::Info::IS_MATCH_FUNC_NULL = (Registry::IsMatchFunc)NULL
static

◆ m_key_name

const ascii_key_type diskCache::Common::Registry::Info::m_key_name
inherited

◆ ON_DIRECTORY_CLOSE_FUNC_NULL

const Registry::OnDirectoryCloseFunc diskCache::Cache::Registry::Info::ON_DIRECTORY_CLOSE_FUNC_NULL = (Registry::OnDirectoryCloseFunc)NULL
static

◆ TRANSLATE_QUERY_FUNC_NULL

const Registry::TranslateQueryFunc diskCache::Cache::Registry::Info::TRANSLATE_QUERY_FUNC_NULL = (Registry::TranslateQueryFunc)NULL
static

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