00001 #ifndef Impala_Core_ImageSet_PathCreatorImageSet_h
00002 #define Impala_Core_ImageSet_PathCreatorImageSet_h
00003
00004 #include "Core/Database/PathCreator.h"
00005 #include "Core/ImageSet/ImageSet.h"
00006
00007 namespace Impala
00008 {
00009 namespace Core
00010 {
00011 namespace ImageSet
00012 {
00013
00014 class PathCreatorImageSet : public Database::PathCreator
00015 {
00016 public:
00017 PathCreatorImageSet(ImageSet* dataset)
00018 {
00019 mImageSet = dataset;
00020 }
00021
00022 Database::RawDataSet* GetDataSet()
00023 {
00024 return mImageSet;
00025 }
00026
00027 String GetFilePathSimilarityData(String filename, bool toWrite, bool silent)
00028 {
00029 return mImageSet->GetFilePathSimilarityData
00030 (mWalkType, mConceptSet, mModel, mFeature, mFolderId,
00031 filename, toWrite, silent);
00032 }
00033
00034 String GetFilePathFeatureData(bool toWrite, bool silent)
00035 {
00036 return mImageSet->GetFilePathFeatureData
00037 (Feature::FeatureDefinition(mFeature), mFolderId, false, 0,
00038 toWrite, silent);
00039 }
00040
00041 PathCreatorImageSet* SetFolderId(int i)
00042 {
00043 mFolderId = i;
00044 return this;
00045 }
00046
00047 int
00048 GetFolderOrVideoId()
00049 {
00050 return mFolderId;
00051 }
00052
00053 private:
00054 int mFolderId;
00055 ImageSet* mImageSet;
00056 };
00057
00058 }
00059 }
00060 }
00061
00062 #endif