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

KeywordListRepository.h

Go to the documentation of this file.
00001 #ifndef Impala_Persistency_KeywordListRepository_h
00002 #define Impala_Persistency_KeywordListRepository_h
00003 
00004 #include "Persistency/RepositoryDispatcher.h"
00005 #include "Persistency/KeywordListRepositoryInFile.h"
00006 #include "Persistency/KeywordListRepositoryInMonet.h"
00007 
00008 namespace Impala
00009 {
00010 namespace Persistency
00011 {
00012 
00013 
00014 class KeywordListRepository
00015     : public RepositoryDispatcher<KeywordListLocator,
00016                                   Core::Table::KeywordList,
00017                                   KeywordListRepositoryInFile,
00018                                   KeywordListRepositoryInMonet>
00019 {
00020 public:
00021 
00022     bool
00023     Exists(const KeywordListLocator& loc)
00024     {
00025         String protocol = loc.GetProtocol();
00026         if ((protocol == "file") || (protocol == "dataServer"))
00027         {
00028             return mRepFile.Exists(loc);
00029         }
00030         /*
00031         if (protocol == "mapi")
00032         {
00033             return mRepMonet.Exists(loc);
00034         }
00035         */
00036         ILOG_ERROR("Get: unknown protocol: [" << loc.GetProtocol() << "] in "
00037                    << loc);
00038         return false;
00039     }
00040 
00041 };
00042 
00043 } // namespace Persistency
00044 } // namespace Impala
00045 
00046 #endif

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