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

KeywordListLocator.h

Go to the documentation of this file.
00001 #ifndef Impala_Persistency_KeywordListLocator_h
00002 #define Impala_Persistency_KeywordListLocator_h
00003 
00004 #include "Persistency/Locator.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Persistency
00009 {
00010 
00011 
00012 class KeywordListLocator : public Locator
00013 {
00014 public:
00015 
00016     KeywordListLocator(CString protocolAndHost, CString dataSet,
00017                        CString conceptSet)
00018         : Locator(protocolAndHost, dataSet)
00019     {
00020         mConceptSet = conceptSet;
00021     }
00022 
00023     KeywordListLocator(CString dataSet, CString conceptSet, CmdOptions& options)
00024         : Locator(dataSet, options)
00025     {
00026         mConceptSet = conceptSet;
00027     }
00028 
00029     KeywordListLocator(const Locator& base, CString conceptSet)
00030         : Locator(base.GetProtocol(), base.GetHost(), base.GetDataSet())
00031     {
00032         mConceptSet = conceptSet;
00033     }
00034 
00035     virtual
00036     ~KeywordListLocator()
00037     {
00038     }
00039 
00040     String
00041     GetConceptSet() const
00042     {
00043         return mConceptSet;
00044     }
00045 
00046     void
00047     SetConceptSet(CString conceptSet)
00048     {
00049         mConceptSet = conceptSet;
00050     }
00051 
00052     String
00053     ToString() const
00054     {
00055         return "KeywordListLocator(" + GetProtocol() + "," + GetHost()
00056             + "," + GetDataSet() + "," + GetConceptSet() + ")";
00057     }
00058 
00059 private:
00060 
00061     String mConceptSet;
00062 
00063     ILOG_VAR_DEC;
00064 };
00065 
00066 ILOG_VAR_INIT(KeywordListLocator, Impala.Persistency);
00067 
00068 std::ostream&
00069 operator<< (std::ostream& os, const KeywordListLocator& loc)
00070 {
00071     os << loc.ToString();
00072     return os;
00073 }
00074 
00075 } // namespace Persistency
00076 } // namespace Impala
00077 
00078 #endif

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