00001 #include <iostream>
00002 #include "PSEUDO_SQLtoLDAPQuerier.h"
00003 #include "LibFactory.h"
00004 #include "ConfigBuffer.h"
00005 #include "QueryTranslationException.h"
00006 #include "TranslatorsUtils.h"
00007 #include "LcgInfoException.h"
00008
00023 namespace LcgInfo{
00039 class LcgInfoInterface{
00040
00041 public:
00042
00046 LcgInfoInterface();
00047
00051 ~LcgInfoInterface();
00052
00061 void initialize(std::string const & pConfFile="lcgInfo.conf");
00062
00071 void initialize(LcgConfigBuffer::ConfigBuffer & pConf);
00072
00082 Querier * connect();
00083
00092 Querier * connect(std::string const & mIface);
00093
00101 void disconnect(std::string const & pIface, Querier * pIfaceHandler);
00102
00103
00104 private:
00108 void LcgInfoInterface::prepareAll();
00109
00114 LcgConfigBuffer::ConfigBuffer * mConf;
00115
00122 std::map<std::string, destroy_Querier*> mIfaces;
00123
00128 libfactory::LibFactory mFactory;
00129
00130 };
00131
00132 }