3 #include "GaudiKernel/MsgStream.h"
4 #include "GaudiKernel/IToolSvc.h"
5 #include "GaudiKernel/IAlgTool.h"
13 m_urlHandlersNames.push_back(
"FileReadTool");
15 declareProperty(
"FileAccessTools",m_urlHandlersNames,
16 "List of tools implementing the IFileAccess interface.");
18 declareProperty(
"FallBackProtocol",m_fallBackProtocol =
"file",
19 "URL prefix to use if the prefix is not present.");
40 std::vector<std::string>::iterator
i;
58 for ( std::vector<std::string>::const_iterator
prot = hndlr->
protocols().begin();
66 log <<
MSG::ERROR <<
"No handler specified for fallback protocol prefix "
95 std::string::size_type pos = url.find(
"://");
97 if (std::string::npos == pos) {
101 std::string url_prefix(url,0,pos);
113 template <
class Container>
116 append_key(Container &C):
c(C){}
118 template <
class PAIR>
119 void operator() (
const PAIR &x)
121 c.push_back(x.first);