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

SimilarityTableSetLocator.h

Go to the documentation of this file.
00001 #ifndef Impala_Persistency_SimilarityTableSetLocator_h
00002 #define Impala_Persistency_SimilarityTableSetLocator_h
00003 
00004 #include "Persistency/Locator.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Persistency
00009 {
00010 
00011 
00012 class SimilarityTableSetLocator : public Locator
00013 {
00014 public:
00015 
00016     // walkType is typically empty or "." for imagesets
00017     SimilarityTableSetLocator(CString protocolAndHost, CString dataSet,
00018                               bool inIndex, CString walkType, CString conceptSet,
00019                               CString model, CString feature, CString videoName)
00020         : Locator(protocolAndHost, dataSet)
00021     {
00022         mInIndex = inIndex;
00023         mWalkType = walkType;
00024         mConceptSet = conceptSet;
00025         mModel = model;
00026         mFeature = feature;
00027         mContainer = videoName;
00028     }
00029 
00030     // walkType is typically empty or "." for imagesets
00031     SimilarityTableSetLocator(CString dataSet, bool inIndex, CString walkType,
00032                               CString conceptSet, CString model, CString feature,
00033                               CString videoName, CmdOptions& options)
00034         : Locator(dataSet, options)
00035     {
00036         mInIndex = inIndex;
00037         mWalkType = walkType;
00038         mConceptSet = conceptSet;
00039         mModel = model;
00040         mFeature = feature;
00041         mContainer = videoName;
00042     }
00043 
00044     // walkType is typically empty or "." for imagesets
00045     SimilarityTableSetLocator(const Locator& base, bool inIndex,
00046                               CString walkType, CString conceptSet,
00047                               CString model, CString feature, CString videoName)
00048         : Locator(base.GetProtocol(), base.GetHost(), base.GetDataSet())
00049     {
00050         mInIndex = inIndex;
00051         mWalkType = walkType;
00052         mConceptSet = conceptSet;
00053         mModel = model;
00054         mFeature = feature;
00055         mContainer = videoName;
00056     }
00057 
00058     virtual
00059     ~SimilarityTableSetLocator()
00060     {
00061     }
00062 
00063     bool
00064     GetInIndex() const
00065     {
00066         return mInIndex;
00067     }
00068 
00069     String
00070     GetInIndexString() const
00071     {
00072         return (mInIndex) ? "SimilarityIndex" : "SimilarityData";
00073     }
00074 
00075     String
00076     GetWalkType() const
00077     {
00078         return mWalkType;
00079     }
00080 
00081     String
00082     GetConceptSet() const
00083     {
00084         return mConceptSet;
00085     }
00086 
00087     String
00088     GetModel() const
00089     {
00090         return mModel;
00091     }
00092 
00093     String
00094     GetFeature() const
00095     {
00096         return mFeature;
00097     }
00098 
00099     String
00100     GetContainer() const
00101     {
00102         return mContainer;
00103     }
00104 
00105     void
00106     SetContainer(CString container)
00107     {
00108         mContainer = container;
00109     }
00110 
00111     String
00112     ToString() const
00113     {
00114         return "SimilarityTableSetLocator(" + GetProtocol() + "," + GetHost()
00115             + "," + GetDataSet() + "," + GetInIndexString() + ","
00116             + GetWalkType() + "," + GetConceptSet() + ","
00117             + GetModel() + "," + GetFeature() + "," + GetContainer() + ")";
00118     }
00119 
00120 private:
00121 
00122     bool   mInIndex;
00123     String mWalkType;
00124     String mConceptSet;
00125     String mModel;
00126     String mFeature;
00127     String mContainer;
00128 
00129     ILOG_VAR_DEC;
00130 };
00131 
00132 ILOG_VAR_INIT(SimilarityTableSetLocator, Impala.Persistency);
00133 
00134 std::ostream&
00135 operator<< (std::ostream& os, const SimilarityTableSetLocator& loc)
00136 {
00137     os << loc.ToString();
00138     return os;
00139 }
00140 
00141 } // namespace Persistency
00142 } // namespace Impala
00143 
00144 #endif

Generated on Fri Mar 19 09:31:44 2010 for ImpalaSrc by  doxygen 1.5.1