Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Core::Database::RawDataSet Class Reference

A set of (DB_SECTION,DB_DIR,DB_FILE) tuples. More...

#include <RawDataSet.h>

Inheritance diagram for Impala::Core::Database::RawDataSet:

Inheritance graph
[legend]
Collaboration diagram for Impala::Core::Database::RawDataSet:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Feature::FeatureDefinition FeatureDefinition

Public Member Functions

 RawDataSet (String setName)
 RawDataSet (Util::Database *db, String setName, String setFileName)
 RawDataSet (Util::Database *db, String setName, String setFileName, String nameExt)
String GetSetName ()
String GetSetNameBase ()
Persistency::Locator GetLocator ()
Util::DatabaseGetDatabase ()
void SetDatabase (Util::Database *db)
virtual int GetSetId ()
int GetQuidClass ()
int NrDirs ()
String GetSection (int elemId)
String GetSectionOfFile (int fileId)
String GetDir (int elemId)
int GetDirId (String dir)
int GetDirId (String section, String dir)
int GetDirIdOfFile (int fileId)
String GetDirOfFile (int fileId)
int GetFirstFileId (int elemId)
int GetNrFiles (int elemId)
bool HasFiles ()
int NrFiles ()
String GetFile (int i)
String GetFileOrDir (int i, String extension)
String GetFileBase (int i)
int GetFileId (int idx)
int GetFileId (String file)
int GetFileId (int dirId, String file)
int GetFileId (String section, String dir, String file)
void GenerateFileNames (String extension)
String GetAsPath (int fileId)
String GetContainerDir (int elemId)
String GetContainerDirOfFile (int fileId)
String GetContainerFile (int fileId)
String MakeDir (String dir)
String MakeDir (String dir1, String dir2)
String MakeDir (String dir1, String dir2, String dir3)
String MakeDir (String dir1, String dir2, String dir3, String dir4)
String MakeDir (String dir1, String dir2, String dir3, String dir4, String dir5)
String GetFilePath (String dir, String file, bool toWrite, bool silent)
String GetFilePath (String dir1, String dir2, String file, bool toWrite, bool silent)
String GetFilePath (String dir1, String dir2, String dir3, String file, bool toWrite, bool silent)
String GetFilePath (String dir1, String dir2, String dir3, String dir4, String file, bool toWrite, bool silent)
String GetFilePath (String dir1, String dir2, String dir3, String dir4, String dir5, String file, bool toWrite, bool silent)
String GetFilePathVideoData (String setName, bool toWrite, bool silent)
String GetFilePathVideoData (int nameId, bool toWrite, bool silent)
String GetFilePathImageData (String setName, bool toWrite, bool silent)
String GetFilePathImageData (int nameId, bool toWrite, bool silent)
String GetFilePathImageArchive (String archiveName, bool toWrite, bool silent)
String GetFilePathImageArchive (int fileId, String archiveName, bool toWrite, bool silent)
String GetFilePathFrames (int fileId, String name, bool toWrite, bool silent)
String GetFilePathFrames (int fileId, int frameNr, String suffix, bool toWrite, bool silent)
String GetFilePathVideoIndex (String subDir, String file, bool toWrite, bool silent)
String GetFilePathMetaData (int fileId, String metaName, bool useDbFile, String suffix, bool toWrite, bool silent)
 Get a file in the DB_DIR/DB_FILE/metaName directory in MetaData.
String GetFilePathMpeg7Shot (int fileId, bool toWrite, bool silent)
String GetFilePathMpeg7Anno (int fileId, String conceptSet, String xmlName, bool toWrite, bool silent)
String GetFilePathMpeg7Feature (int fileId, String xmlName, bool toWrite, bool silent)
String GetFilePathMpeg7Concept (int fileId, String conceptSet, String xmlName, bool toWrite, bool silent)
String GetFilePathPrototype (String protoDataFile, String featureName, String fileName, bool toWrite, bool silent)
String GetFilePathFeatureData (String walkType, FeatureDefinition def, int fileOrDirId, bool partial, int startFrameOrFile, bool toWrite, bool silent)
String GetFilePathFeatureData (FeatureDefinition def, int dirId, bool partial, int startFile, bool toWrite, bool silent)
String GetFilePathFeatureIndex (FeatureDefinition def, String subSet, bool toWrite, bool silent)
String GetFilePathPrecomputedKernels (String filename, String otherSet, bool toWrite, bool silent)
String GetFilePathRandomForest (FeatureDefinition def, bool toWrite, bool silent)
String GetFilePathCodebook (FeatureDefinition def, bool toWrite, bool silent)
String GetFilePathSimilarityData (String walkType, String conceptSet, String model, String featureString, int fileOrDirId, String fileName, bool toWrite, bool silent)
String GetFilePathSimilarityIndex (String conceptSet, String model, String featureString, String fileName, bool toWrite, bool silent)
String GetFilePathAnnotation (String annoFile, bool toWrite, bool silent)
String GetFilePathAnnotation (int quidClass, String conceptSet, String annoFile, bool toWrite, bool silent)
String GetFilePathGroundTruth (String truthFile, bool toWrite, bool silent)
String GetFilePathConceptModel (String conceptSet, String modelType, FeatureDefinition def, String modelFile, bool toWrite, bool silent)
String GetFilePathReference (int fileId, String suffix, bool toWrite, bool silent)
String GetFilePathKernelData (String walkType, String referenceSet, String kernelName, int fileOrDirId, bool toWrite, bool silent)
void AddFile (String file, String section, String dir, int id=-1)
void AddFile (String path, int id)
void Save ()
void Save (String fileName)
void SaveBinary ()
void Dump (int startDir, int endDir, int startFile, int endFile)
virtual String QuidToString (Quid quid, bool elaborate)
void CopyIndex (const RawDataSet *src)
 experimental: for testing

Protected Member Functions

void Init (String setName)
void Init (Util::Database *db, String setName, String setFileName)
void ExtractFileSectionDir (const String &src, String &file, String &section, String &dir)

Protected Attributes

Util::DatabasemDb
String mSetName
String mSetNameBase
String mSetFileName
bool mHasFiles
int mLastId
int mLastKeyForWarning
std::vector< int > mFileId
std::vector< StringmFile
std::vector< int > mFileKey
std::vector< StringmSection
std::vector< StringmDir
std::vector< int > mFirstFileId
std::vector< int > mNrFiles
int mQuidClass
 ILOG_VAR_DEC

Detailed Description

A set of (DB_SECTION,DB_DIR,DB_FILE) tuples.

Optionally, each dir has a set of files (if not, file names are generated).

Definition at line 26 of file RawDataSet.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:07:17 2010 for ImpalaSrc by  doxygen 1.5.1