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

QuidTableLocator.h

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

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