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

TaskTableLocator.h

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

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