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

RgbDataSrcLocator.h

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

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