ldas-tools-diskcacheAPI  2.6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
diskCache::TCL::Commands Namespace Reference

Functions

std::string getDirCache (const char *ifo="all", const char *type="all")
 
 CREATE_THREADED2_DECL (getDirCache, std::string, const char *, const char *)
 
std::string getFileExtList ()
 
std::string getFileNames (const char *IfoType, const unsigned int Start, const unsigned int Stop, const char *Extension)
 
 CREATE_THREADED4_DECL (getFileNames, std::string, const char *, const unsigned int, const unsigned int, const char *)
 
std::string getFrameFiles (const char *Ifo, const char *Type, const unsigned int Start, const unsigned int Stop, const char *Extension, const bool AllowGaps)
 Frame query. More...
 
 CREATE_THREADED6_DECL (getFrameFiles, std::string, const char *, const char *, const unsigned int, const unsigned int, const char *, const bool)
 
std::string getIntervalsList (const char *IfoType, const unsigned int Start, const unsigned int Stop, const char *Extension)
 Get lists of intervals. More...
 
 CREATE_THREADED4_DECL (getIntervalsList, std::string, const char *, const unsigned int, const unsigned int, const char *)
 
std::string getRDSFrameFiles (const char *Ifo, const char *Type, const unsigned int Start, const unsigned int Stop, const char *Extension, const bool WillResample)
 RDS frame query. More...
 
 CREATE_THREADED6_DECL (getRDSFrameFiles, std::string, const char *, const char *, const unsigned int, const unsigned int, const char *, const bool)
 
void updateFileExtList (const char *Extensions)
 Update the list of extensions to cache by SDGTx engine. More...
 
std::string updateMountPtList (const char *dir_list, const bool enable_global_check=false)
 usage: set dir_list [ updateMountPtList known_mount_pt_dirs ] More...
 

Function Documentation

diskCache::TCL::Commands::CREATE_THREADED2_DECL ( getDirCache  ,
std::string  ,
const char *  ,
const char *   
)
diskCache::TCL::Commands::CREATE_THREADED4_DECL ( getFileNames  ,
std::string  ,
const char *  ,
const unsigned  int,
const unsigned  int,
const char *   
)
diskCache::TCL::Commands::CREATE_THREADED4_DECL ( getIntervalsList  ,
std::string  ,
const char *  ,
const unsigned  int,
const unsigned  int,
const char *   
)
diskCache::TCL::Commands::CREATE_THREADED6_DECL ( getFrameFiles  ,
std::string  ,
const char *  ,
const char *  ,
const unsigned  int,
const unsigned  int,
const char *  ,
const bool   
)
diskCache::TCL::Commands::CREATE_THREADED6_DECL ( getRDSFrameFiles  ,
std::string  ,
const char *  ,
const char *  ,
const unsigned  int,
const unsigned  int,
const char *  ,
const bool   
)
std::string diskCache::TCL::Commands::getDirCache ( const char *  ifo = "all",
const char *  type = "all" 
)
std::string diskCache::TCL::Commands::getFileExtList ( )
std::string diskCache::TCL::Commands::getFileNames ( const char *  IfoType,
const unsigned int  Start,
const unsigned int  Stop,
const char *  Extension 
)
std::string diskCache::TCL::Commands::getFrameFiles ( const char *  Ifo,
const char *  Type,
const unsigned int  Start,
const unsigned int  Stop,
const char *  Extension,
const bool  AllowGaps 
)

Frame query.

This function is used to search global frame data hash for a specific data.

Parameters
[in]IfoData IFO.
[in]TypeData Type.
[in]StartData start time.
[in]StopData stop time.
[in]ExtensionQuery file extension
[in]AllowGapsFlag to indicate if data gaps are allowed. Set to TRUE (1) if allowed, to FALSE (0) - if not.
Returns
Tcl formated string: { frame files }{ errors if any }.
std::string diskCache::TCL::Commands::getIntervalsList ( const char *  IfoType,
const unsigned int  Start,
const unsigned int  Stop,
const char *  Extension 
)

Get lists of intervals.

Parameters
[in]IfoTypeA space delimited list of IFO-Type strings.
[in]StartQuery start time.
[in]StopQuery stop time.
[in]ExtensionFilename extension (ex: ".gwf").
Returns
A list for each IFO-Type pair with data intervals: IFO-Type1 { i1_start i1_stop ... iN_start iN_stop } ... IFO-TypeN { ... }
std::string diskCache::TCL::Commands::getRDSFrameFiles ( const char *  Ifo,
const char *  Type,
const unsigned int  Start,
const unsigned int  Stop,
const char *  Extension,
const bool  WillResample 
)

RDS frame query.

Parameters
[in]IfoData IFO.
[in]TypeData Type.
[in]StartData start time.
[in]StopData stop time.
[in]ExtensionQuery file extension
[in]WillResampleFlag to indicate if requested data will be resampled. Set to TRUE (1) if will be resampled, to FALSE (0) if not.
Returns
Tcl formated string: { frame files }{ errors if any }.
void diskCache::TCL::Commands::updateFileExtList ( const char *  Extensions)

Update the list of extensions to cache by SDGTx engine.

std::string diskCache::TCL::Commands::updateMountPtList ( const char *  dir_list,
const bool  enable_global_check = false 
)

usage: set dir_list [ updateMountPtList known_mount_pt_dirs ]

param: const CHAR* dir_list - A list of directories as they appear param: const bool enable_global_check - A flag to indicate if API should check for return: string - Sorted Tcl list of all removed subdirectories, followed by