4 #include "XrdClient/XrdClientAdmin.hh"
5 #include "XrdClient/XrdClientUrlSet.hh"
13 const std::string &
path,
16 std::string fullpath(proto +
":" + path);
17 return new XrdFile (fullpath, mode);
20 virtual void stagein (
const std::string &proto,
const std::string &
path)
22 std::string fullpath(proto +
":" + path);
23 XrdClientAdmin admin(fullpath.c_str());
26 XrdOucString str(fullpath.c_str());
27 XrdClientUrlSet url(str);
28 admin.Prepare(url.GetFile().c_str(), kXR_stage | kXR_noerrs, 0);
32 virtual bool check (
const std::string &proto,
33 const std::string &
path,
36 std::string fullpath(proto +
":" + path);
37 XrdClientAdmin admin(fullpath.c_str());
38 if (! admin.Connect())
46 XrdOucString str(fullpath.c_str());
47 XrdClientUrlSet url(str);
49 if (! admin.Stat(url.GetFile().c_str(), id, xrdsize,
flags, modtime))
virtual Storage * open(const std::string &proto, const std::string &path, int mode)
std::vector< Variable::Flags > flags
virtual bool check(const std::string &proto, const std::string &path, IOOffset *size=0)
virtual void stagein(const std::string &proto, const std::string &path)
#define DEFINE_EDM_PLUGIN(factory, type, name)
tuple size
Write out results.