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

SDGTx caching scheme. More...

#include <SDGTx.hh>

Inheritance diagram for diskCache::Cache::SDGTx:
diskCache::Cache::SearchInterface diskCache::Cache::Interface

Classes

class  DirectoryInfo
 This class has the cache of directory information. More...
 
class  ExtensionError
 
class  OverlapHandler
 
class  QueryParams
 Optimized version of an ASCII query. More...
 

Public Types

typedef std::string file_extension_type
 
typedef std::list< file_extension_typefile_extension_container_type
 

Public Member Functions

virtual bool Configure (const std::string &Variable, const std::string &Value)
 Allow for customization. More...
 

Static Public Member Functions

static RegistrySingleton::id_type RegisterSearchEngine ()
 Register as a search engine. More...
 
static void FileExtList (const file_extension_container_type &Extensions, const std::string &Default)
 
static const file_extension_container_typeFileExtList ()
 
static void Find (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
static bool IsMatch (DirectoryScanData &Data)
 Function called during processing of a directory. More...
 
static void OnDirectoryClose (DirectoryScanData &Data)
 Function called after all files have been processed. More...
 
static void TranslateQuery (const Cache::QueryParams &Params, Cache::QueryAnswer &Answer)
 
static void Query (const Cache::QueryParams &Params, Cache::QueryAnswer &Answer)
 Query for specific data. More...
 

Static Public Attributes

static const char * AsciiId = "SDGTx"
 
static RegistrySingleton::id_type REGISTRY_ID = RegistrySingleton::ID_NULL
 
static file_extension_type s_default_extension = ".gwf"
 
static file_extension_container_type s_extensions
 

Detailed Description

SDGTx caching scheme.

This caching scheme is based on the S-D-G-T.%<ext%> naming convention that is referenced in the appendix of the Frame Specification.

Member Typedef Documentation

◆ file_extension_container_type

◆ file_extension_type

Member Function Documentation

◆ Configure()

bool diskCache::Cache::SDGTx::Configure ( const std::string &  Variable,
const std::string &  Value 
)
virtual

Allow for customization.

Parameters
[in]VariableName of the option to modify
[in]ValueThe ascii string representation of the value for the option.
Returns
Upon successful setting of the option, true is returned; false otherwise.

Implements diskCache::Cache::Interface.

◆ FileExtList() [1/2]

void diskCache::Cache::SDGTx::FileExtList ( const file_extension_container_type Extensions,
const std::string &  Default 
)
static

◆ FileExtList() [2/2]

const SDGTx::file_extension_container_type & diskCache::Cache::SDGTx::FileExtList ( )
inlinestatic

◆ Find()

void diskCache::Cache::SDGTx::Find ( const Streams::Streamable Source,
const Directory Dir,
QueryAnswer Answer 
)
static
Todo:
Need to catch appropriate exceptions

◆ IsMatch()

bool diskCache::Cache::SDGTx::IsMatch ( DirectoryScanData Data)
static

Function called during processing of a directory.

Parameters
[in]DataPlace to log information as the directory is being processed.
Returns
The value true is returned if the file being processed is cached by the indexing algorithm; false otherwise.

◆ OnDirectoryClose()

void diskCache::Cache::SDGTx::OnDirectoryClose ( DirectoryScanData Data)
static

Function called after all files have been processed.

Parameters
[in]DataInformation gathered during teh scanning of the directory.

When finished reading from the directory, all files that have been identified as new need to go under further scrutinization to ensure they do not violate any of the rules.

Todo:
Need to look at the old data to see if files existed in the previous version since they will need to be removed here.
Todo:
Need to flag this data as overlapping with other data within this directory
Todo:
Verify that file is unique under the mount point

◆ Query()

static void diskCache::Cache::SDGTx::Query ( const Cache::QueryParams Params,
Cache::QueryAnswer Answer 
)
static

Query for specific data.

Parameters
[in]ParamsThe ASCII representation of the query.
[out]AnswerThe answer set.

◆ RegisterSearchEngine()

RegistrySingleton::id_type diskCache::Cache::SDGTx::RegisterSearchEngine ( )
static

Register as a search engine.

Register the search engine so it can be used throughout the system.

◆ TranslateQuery()

void diskCache::Cache::SDGTx::TranslateQuery ( const Cache::QueryParams Params,
Cache::QueryAnswer Answer 
)
static

Member Data Documentation

◆ AsciiId

const char * diskCache::Cache::SDGTx::AsciiId = "SDGTx"
static

◆ REGISTRY_ID

RegistrySingleton::id_type diskCache::Cache::SDGTx::REGISTRY_ID = RegistrySingleton::ID_NULL
static

◆ s_default_extension

SDGTx::file_extension_type diskCache::Cache::SDGTx::s_default_extension = ".gwf"
static

◆ s_extensions

SDGTx::file_extension_container_type diskCache::Cache::SDGTx::s_extensions
static

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