Home || Visual Search || Applications || Architecture || 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     SimilarityTableSetLocator()
00017     {
00018     }
00019 
00020     // walkType is typically empty or "." for imagesets
00021     SimilarityTableSetLocator(CString protocolAndHost, CString dataSet,
00022                               bool inIndex, CString walkType, CString conceptSet,
00023                               CString model, CString feature, CString container)
00024         : Locator(protocolAndHost, dataSet)
00025     {
00026         mInIndex = inIndex;
00027         mWalkType = walkType;
00028         mConceptSet = conceptSet;
00029         mModel = model;
00030         mFeature = feature;
00031         mContainer = container;
00032     }
00033 
00034     // walkType is typically empty or "." for imagesets
00035     SimilarityTableSetLocator(CString dataSet, bool inIndex, CString walkType,
00036                               CString conceptSet, CString model, CString feature,
00037                               CString container, CmdOptions& options)
00038         : Locator(dataSet, options)
00039     {
00040         mInIndex = inIndex;
00041         mWalkType = walkType;
00042         mConceptSet = conceptSet;
00043         mModel = model;
00044         mFeature = feature;
00045         mContainer = container;
00046     }
00047 
00048     // walkType is typically empty or "." for imagesets
00049     SimilarityTableSetLocator(const Locator& base, bool inIndex,
00050                               CString walkType, CString conceptSet,
00051                               CString model, CString feature, CString container)
00052         : Locator(base.GetProtocol(), base.GetHost(), base.GetDataSet())
00053     {
00054         mInIndex = inIndex;
00055         mWalkType = walkType;
00056         mConceptSet = conceptSet;
00057         mModel = model;
00058         mFeature = feature;
00059         mContainer = container;
00060     }
00061 
00062     virtual
00063     ~SimilarityTableSetLocator()
00064     {
00065     }
00066 
00067     bool
00068     GetInIndex() const
00069     {
00070         return mInIndex;
00071     }
00072 
00073     void
00074     SetInIndex(bool inIndex)
00075     {
00076         mInIndex = inIndex;
00077     }
00078 
00079     String
00080     GetInIndexString() const
00081     {
00082         return (mInIndex) ? "SimilarityIndex" : "SimilarityData";
00083     }
00084 
00085     String
00086     GetWalkType() const
00087     {
00088         return mWalkType;
00089     }
00090 
00091     void
00092     SetWalkType(CString walkType)
00093     {
00094         mWalkType = walkType;
00095     }
00096 
00097     String
00098     GetConceptSet() const
00099     {
00100         return mConceptSet;
00101     }
00102 
00103     void
00104     SetConceptSet(CString conceptSet)
00105     {
00106         mConceptSet = conceptSet;
00107     }
00108 
00109     String
00110     GetModel() const
00111     {
00112         return mModel;
00113     }
00114 
00115     String
00116     GetFeature() const
00117     {
00118         return mFeature;
00119     }
00120 
00121     void
00122     SetFeature(CString feature)
00123     {
00124         mFeature = feature;
00125     }
00126 
00127     String
00128     GetContainer() const
00129     {
00130         return mContainer;
00131     }
00132 
00133     void
00134     SetContainer(CString container)
00135     {
00136         mContainer = container;
00137     }
00138 
00139     String
00140     ToString() const
00141     {
00142         return "SimilarityTableSetLocator(" + GetProtocol() + "," + GetHost()
00143             + "," + GetDataSet() + "," + GetInIndexString() + ","
00144             + GetWalkType() + "," + GetConceptSet() + ","
00145             + GetModel() + "," + GetFeature() + "," + GetContainer() + ")";
00146     }
00147 
00148 private:
00149 
00150     bool   mInIndex;
00151     String mWalkType;
00152     String mConceptSet;
00153     String mModel;
00154     String mFeature;
00155     String mContainer;
00156 
00157     ILOG_VAR_DEC;
00158 };
00159 
00160 ILOG_VAR_INIT(SimilarityTableSetLocator, Impala.Persistency);
00161 
00162 std::ostream&
00163 operator<< (std::ostream& os, const SimilarityTableSetLocator& loc)
00164 {
00165     os << loc.ToString();
00166     return os;
00167 }
00168 
00169 } // namespace Persistency
00170 } // namespace Impala
00171 
00172 #endif

Generated on Thu Jan 13 09:05:11 2011 for ImpalaSrc by  doxygen 1.5.1