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

AnnotationTableSetLocator.h

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

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