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