#include <XrdCpWorkLst.hh>
Public Member Functions | |
| XrdCpWorkLst () | |
| ~XrdCpWorkLst () | |
| int | SetSrc (XrdClient **srccli, XrdOucString url, XrdOucString urlopaquedata, bool do_recurse) |
| int | SetDest (XrdClient **xrddest, const char *url, const char *urlopaquedata, kXR_unt16 xrdopenflags) |
| void | GetDest (XrdOucString &dest, bool &isdir) |
| void | GetSrc (XrdOucString &src, bool &isdir) |
| int | BuildWorkList_xrd (XrdOucString url, XrdOucString opaquedata) |
| int | BuildWorkList_loc (XrdSysDir *dir, XrdOucString pat) |
| bool | GetCpJob (XrdOucString &src, XrdOucString &dest) |
Private Attributes | |
| vecString | fWorkList |
| int | fWorkIt |
| XrdClientAdmin * | xrda_src |
| XrdClientAdmin * | xrda_dst |
| XrdOucString | fSrc |
| XrdOucString | fDest |
| bool | fDestIsDir |
| bool | fSrcIsDir |
Definition at line 21 of file XrdCpWorkLst.hh.
| XrdCpWorkLst::XrdCpWorkLst | ( | ) |
Definition at line 72 of file XrdCpWorkLst.cc.
References XrdClientVector< T >::Clear(), fWorkList, xrda_dst, and xrda_src.
| XrdCpWorkLst::~XrdCpWorkLst | ( | ) |
Definition at line 78 of file XrdCpWorkLst.cc.
References XrdClientVector< T >::Clear(), and fWorkList.
| int XrdCpWorkLst::SetSrc | ( | XrdClient ** | srccli, | |
| XrdOucString | url, | |||
| XrdOucString | urlopaquedata, | |||
| bool | do_recurse | |||
| ) |
Definition at line 84 of file XrdCpWorkLst.cc.
References XrdOucString::beginswith(), BuildWorkList_loc(), BuildWorkList_xrd(), XrdOucString::c_str(), XrdClientAdmin::Connect(), d, FALSE, fSrc, fSrcIsDir, fWorkIt, fWorkList, kXR_async, kXR_isDirectory, kXR_ok, XrdOucString::length(), PrintLastServerError(), XrdClientVector< T >::Push_back(), TRUE, and xrda_src.
Referenced by main().
| int XrdCpWorkLst::SetDest | ( | XrdClient ** | xrddest, | |
| const char * | url, | |||
| const char * | urlopaquedata, | |||
| kXR_unt16 | xrdopenflags | |||
| ) |
Definition at line 168 of file XrdCpWorkLst.cc.
References XrdOucString::c_str(), XrdOucString::endswith(), FALSE, fDest, fDestIsDir, fSrcIsDir, fWorkIt, kXR_gr, kXR_gw, kXR_isDirectory, kXR_ok, kXR_or, kXR_ur, kXR_uw, lstat, PedanticOpen4Write(), PrintLastServerError(), retval, S_ISDIR, stat, and TRUE.
Referenced by main().
| void XrdCpWorkLst::GetDest | ( | XrdOucString & | dest, | |
| bool & | isdir | |||
| ) | [inline] |
Definition at line 45 of file XrdCpWorkLst.hh.
References fDest, and fDestIsDir.
Referenced by main().
| void XrdCpWorkLst::GetSrc | ( | XrdOucString & | src, | |
| bool & | isdir | |||
| ) | [inline] |
| int XrdCpWorkLst::BuildWorkList_xrd | ( | XrdOucString | url, | |
| XrdOucString | opaquedata | |||
| ) |
Definition at line 299 of file XrdCpWorkLst.cc.
References XrdClientAdmin::DirList(), entries, flags, fWorkList, id, kXR_isDir, XrdClientVector< T >::Push_back(), size, XrdClientAdmin::Stat(), u, and xrda_src.
Referenced by SetSrc().
| int XrdCpWorkLst::BuildWorkList_loc | ( | XrdSysDir * | dir, | |
| XrdOucString | pat | |||
| ) |
Definition at line 333 of file XrdCpWorkLst.cc.
References XrdOucString::c_str(), d, dir(), fWorkList, lstat, XrdClientVector< T >::Push_back(), S_ISDIR, S_ISREG, and stat.
Referenced by SetSrc().
| bool XrdCpWorkLst::GetCpJob | ( | XrdOucString & | src, | |
| XrdOucString & | dest | |||
| ) |
Definition at line 371 of file XrdCpWorkLst.cc.
References FALSE, fDest, fDestIsDir, fWorkIt, fWorkList, XrdClientVector< T >::GetSize(), STR_NPOS, and TRUE.
Referenced by main().
vecString XrdCpWorkLst::fWorkList [private] |
Definition at line 23 of file XrdCpWorkLst.hh.
Referenced by BuildWorkList_loc(), BuildWorkList_xrd(), GetCpJob(), SetSrc(), XrdCpWorkLst(), and ~XrdCpWorkLst().
int XrdCpWorkLst::fWorkIt [private] |
XrdClientAdmin* XrdCpWorkLst::xrda_src [private] |
Definition at line 26 of file XrdCpWorkLst.hh.
Referenced by BuildWorkList_xrd(), SetSrc(), and XrdCpWorkLst().
XrdClientAdmin * XrdCpWorkLst::xrda_dst [private] |
XrdOucString XrdCpWorkLst::fSrc [private] |
XrdOucString XrdCpWorkLst::fDest [private] |
bool XrdCpWorkLst::fDestIsDir [private] |
bool XrdCpWorkLst::fSrcIsDir [private] |
1.5.1