XrdCpWorkLst Class Reference

#include <XrdCpWorkLst.hh>

List of all members.

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
XrdClientAdminxrda_src
XrdClientAdminxrda_dst
XrdOucString fSrc
XrdOucString fDest
bool fDestIsDir
bool fSrcIsDir


Detailed Description

Definition at line 21 of file XrdCpWorkLst.hh.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 50 of file XrdCpWorkLst.hh.

References fSrc, and fSrcIsDir.

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().


Member Data Documentation

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]

Definition at line 24 of file XrdCpWorkLst.hh.

Referenced by GetCpJob(), SetDest(), and SetSrc().

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]

Definition at line 26 of file XrdCpWorkLst.hh.

Referenced by XrdCpWorkLst().

XrdOucString XrdCpWorkLst::fSrc [private]

Definition at line 28 of file XrdCpWorkLst.hh.

Referenced by GetSrc(), and SetSrc().

XrdOucString XrdCpWorkLst::fDest [private]

Definition at line 28 of file XrdCpWorkLst.hh.

Referenced by GetCpJob(), GetDest(), and SetDest().

bool XrdCpWorkLst::fDestIsDir [private]

Definition at line 29 of file XrdCpWorkLst.hh.

Referenced by GetCpJob(), GetDest(), and SetDest().

bool XrdCpWorkLst::fSrcIsDir [private]

Definition at line 29 of file XrdCpWorkLst.hh.

Referenced by GetSrc(), SetDest(), and SetSrc().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:27 2011 for ROOT_528-00b_version by  doxygen 1.5.1