xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdCpConfig Class Reference

#include <XrdCpConfig.hh>

Collaboration diagram for XrdCpConfig:
Collaboration graph
[legend]

Classes

struct  defVar
 

Public Member Functions

void Config (int argc, char **argv, int Opts=0)
 
int Want (uint64_t What)
 
 XrdCpConfig (const char *pgname)
 
 ~XrdCpConfig ()
 

Public Attributes

defVarintDefs
 
defVarstrDefs
 
const char * dstOpq
 
const char * srcOpq
 
const char * Pgm
 
long long xRate
 
long long xRateThreashold
 
int Parallel
 
char * pHost
 
int pPort
 
long long OpSpec
 
int Dlvl
 
int nSrcs
 
int nStrm
 
int Retry
 
std::string RetryPolicy
 
int Verbose
 
int CksLen
 
int numFiles
 
long long totBytes
 
XrdCksData CksData
 
XrdCksCksMan
 
XrdCksCalcCksObj
 
const char * CksVal
 
XrdCpFilesrcFile
 
XrdCpFiledstFile
 
char * zipFile
 
std::vector< std::string > AddCksVal
 

Static Public Attributes

static XrdSysErrorLog
 
static const uint64_t OpCksum = 'C'
 
static const uint64_t DoCksrc = 0x0000000000000001LL
 
static const uint64_t DoCksum = 0x0000000000000002LL
 
static const uint64_t DoCkprt = 0x0000000000000004LL
 
static const uint64_t OpCoerce = 'F'
 
static const uint64_t DoCoerce = 0x0000000000000008LL
 
static const uint64_t OpDebug = 'd'
 
static const uint64_t DoDebug = 0x0000000000000010LL
 
static const uint64_t OpForce = 'f'
 
static const uint64_t DoForce = 0x0000000000000020LL
 
static const uint64_t OpHelp = 'h'
 
static const uint64_t DoHelp = 0x0000000000000040LL
 
static const uint64_t OpIfile = 'I'
 
static const uint64_t DoIfile = 0x0000000000000080LL
 
static const uint64_t OpLicense = 'H'
 
static const uint64_t OpNoPbar = 'N'
 
static const uint64_t DoNoPbar = 0x0000000000000100LL
 
static const uint64_t OpPosc = 'P'
 
static const uint64_t DoPosc = 0x0000000000000200LL
 
static const uint64_t OpProxy = 'D'
 
static const uint64_t DoProxy = 0x0000000000000400LL
 
static const uint64_t OpRecurse = 'r'
 
static const uint64_t OpRecursv = 'R'
 
static const uint64_t DoRecurse = 0x0000000000000800LL
 
static const uint64_t OpRetry = 't'
 
static const uint64_t DoRetry = 0x0000000000001000LL
 
static const uint64_t OpServer = 0x03
 
static const uint64_t DoServer = 0x0000000000002000LL
 
static const uint64_t OpSilent = 's'
 
static const uint64_t DoSilent = 0x0000000000004000LL
 
static const uint64_t OpSources = 'y'
 
static const uint64_t DoSources = 0x0000000000008000LL
 
static const uint64_t OpStreams = 'S'
 
static const uint64_t DoStreams = 0x0000000000010000LL
 
static const uint64_t OpTpc = 'T'
 
static const uint64_t DoTpc = 0x0000000000020000LL
 
static const uint64_t DoTpcOnly = 0x0000000000100000LL
 
static const uint64_t DoTpcDlgt = 0x0000000000800000LL
 
static const uint64_t OpVerbose = 'v'
 
static const uint64_t DoVerbose = 0x0000000000040000LL
 
static const uint64_t OpVersion = 'V'
 
static const uint64_t OpXrate = 'X'
 
static const uint64_t DoXrate = 0x0000000000080000LL
 
static const uint64_t OpParallel = 0x04
 
static const uint64_t DoParallel = 0x0000000000200000LL
 
static const uint64_t OpDynaSrc = 'Z'
 
static const uint64_t DoDynaSrc = 0x0000000000400000LL
 
static const uint64_t OpZip = 'z'
 
static const uint64_t DoZip = 0x0000000001000000LL
 
static const uint64_t OpTlsNoData = 'E'
 
static const uint64_t DoTlsNoData = 0x0000000002000000LL
 
static const uint64_t OpNoTlsOK = 0x05
 
static const uint64_t DoNoTlsOK = 0x0000000004000000LL
 
static const uint64_t OpTlsMLF = 0x06
 
static const uint64_t DoTlsMLF = 0x0000000008000000LL
 
static const uint64_t OpPath = 'p'
 
static const uint64_t DoPath = 0x0000000010000000LL
 
static const uint64_t OpXAttr = 0x07
 
static const uint64_t DoXAttr = 0x0000000020000000LL
 
static const uint64_t OpZipMtlnCksum = 0x08
 
static const uint64_t DoZipMtlnCksum = 0x0000000040000000LL
 
static const uint64_t OpRmOnBadCksum = 0x09
 
static const uint64_t DoRmOnBadCksum = 0x0000000080000000LL
 
static const uint64_t OpContinue = 0x10
 
static const uint64_t DoContinue = 0x0000000100000000LL
 
static const uint64_t OpXrateThreashold = 0x11
 
static const uint64_t DoXrateThreashold = 0x0000000200000000LL
 
static const uint64_t OpRetryPolicy = 0x12
 
static const uint64_t DoRetryPolicy = 0x0000000400000000LL
 
static const uint64_t OpZipAppend = 0x13
 
static const uint64_t DoZipAppend = 0x0000000800000000LL
 
static const int OpAllowHttp = 'A'
 
static const int DoAllowHttp = 0x2000000
 
static const int opt1Src = 0x00000001
 
static const int optNoXtnd = 0x00000002
 
static const int optRmtRec = 0x00000004
 
static const int optNoStdIn = 0x00000008
 
static const int optNoLclCp = 0x00000010
 

Private Member Functions

int a2i (const char *item, int *val, int minv, int maxv=-1)
 
int a2l (const char *item, long long *val, long long minv, long long maxv=-1)
 
int a2t (const char *item, int *val, int minv, int maxv=-1)
 
int a2x (const char *Val, char *Buff, int Vlen)
 
int a2z (const char *item, long long *val, long long minv, long long maxv=-1)
 
int defCks (const char *opval)
 
int defOpq (const char *theOp)
 
int defOpt (const char *theOp, const char *theArg)
 
void defPxy (const char *opval)
 
const char * Human (long long Val, char *Buff, int Blen)
 
int Legacy (int oIndex)
 
int Legacy (const char *theOp, const char *theArg)
 
void License ()
 
const char * OpName ()
 
void ProcFile (const char *fname)
 
void Usage (int rc=0)
 

Static Private Member Functions

static void toLower (char cstr[])
 

Private Attributes

const char * PName
 
int Opts
 
int Argc
 
char ** Argv
 
defVarintDend
 
defVarstrDend
 
XrdCpFilepFile
 
XrdCpFilepLast
 
XrdCpFilepPrev
 
char * inFile
 
char ** parmVal
 
int parmCnt
 
int isLcl
 

Static Private Attributes

static const char * opLetters
 
static struct option opVec []
 
static const int dfltSrcs = 12
 

Constructor & Destructor Documentation

XrdCpConfig::XrdCpConfig ( const char *  pgname)
XrdCpConfig::~XrdCpConfig ( )

Member Function Documentation

int XrdCpConfig::a2i ( const char *  item,
int *  val,
int  minv,
int  maxv = -1 
)
private
int XrdCpConfig::a2l ( const char *  item,
long long *  val,
long long  minv,
long long  maxv = -1 
)
private
int XrdCpConfig::a2t ( const char *  item,
int *  val,
int  minv,
int  maxv = -1 
)
private
int XrdCpConfig::a2x ( const char *  Val,
char *  Buff,
int  Vlen 
)
private
int XrdCpConfig::a2z ( const char *  item,
long long *  val,
long long  minv,
long long  maxv = -1 
)
private
void XrdCpConfig::Config ( int  argc,
char **  argv,
int  Opts = 0 
)
int XrdCpConfig::defCks ( const char *  opval)
private
int XrdCpConfig::defOpq ( const char *  theOp)
private
int XrdCpConfig::defOpt ( const char *  theOp,
const char *  theArg 
)
private
void XrdCpConfig::defPxy ( const char *  opval)
private
const char* XrdCpConfig::Human ( long long  Val,
char *  Buff,
int  Blen 
)
private
int XrdCpConfig::Legacy ( int  oIndex)
private
int XrdCpConfig::Legacy ( const char *  theOp,
const char *  theArg 
)
private
void XrdCpConfig::License ( )
private
const char* XrdCpConfig::OpName ( )
private
void XrdCpConfig::ProcFile ( const char *  fname)
private
static void XrdCpConfig::toLower ( char  cstr[])
inlinestaticprivate
void XrdCpConfig::Usage ( int  rc = 0)
private
int XrdCpConfig::Want ( uint64_t  What)
inline

References OpSpec.

Member Data Documentation

std::vector<std::string> XrdCpConfig::AddCksVal
int XrdCpConfig::Argc
private
char** XrdCpConfig::Argv
private
XrdCksData XrdCpConfig::CksData
int XrdCpConfig::CksLen
XrdCks* XrdCpConfig::CksMan
XrdCksCalc* XrdCpConfig::CksObj
const char* XrdCpConfig::CksVal
const int XrdCpConfig::dfltSrcs = 12
staticprivate
int XrdCpConfig::Dlvl
const int XrdCpConfig::DoAllowHttp = 0x2000000
static
const uint64_t XrdCpConfig::DoCkprt = 0x0000000000000004LL
static
const uint64_t XrdCpConfig::DoCksrc = 0x0000000000000001LL
static
const uint64_t XrdCpConfig::DoCksum = 0x0000000000000002LL
static
const uint64_t XrdCpConfig::DoCoerce = 0x0000000000000008LL
static
const uint64_t XrdCpConfig::DoContinue = 0x0000000100000000LL
static
const uint64_t XrdCpConfig::DoDebug = 0x0000000000000010LL
static
const uint64_t XrdCpConfig::DoDynaSrc = 0x0000000000400000LL
static
const uint64_t XrdCpConfig::DoForce = 0x0000000000000020LL
static
const uint64_t XrdCpConfig::DoHelp = 0x0000000000000040LL
static
const uint64_t XrdCpConfig::DoIfile = 0x0000000000000080LL
static
const uint64_t XrdCpConfig::DoNoPbar = 0x0000000000000100LL
static
const uint64_t XrdCpConfig::DoNoTlsOK = 0x0000000004000000LL
static
const uint64_t XrdCpConfig::DoParallel = 0x0000000000200000LL
static
const uint64_t XrdCpConfig::DoPath = 0x0000000010000000LL
static
const uint64_t XrdCpConfig::DoPosc = 0x0000000000000200LL
static
const uint64_t XrdCpConfig::DoProxy = 0x0000000000000400LL
static
const uint64_t XrdCpConfig::DoRecurse = 0x0000000000000800LL
static
const uint64_t XrdCpConfig::DoRetry = 0x0000000000001000LL
static
const uint64_t XrdCpConfig::DoRetryPolicy = 0x0000000400000000LL
static
const uint64_t XrdCpConfig::DoRmOnBadCksum = 0x0000000080000000LL
static
const uint64_t XrdCpConfig::DoServer = 0x0000000000002000LL
static
const uint64_t XrdCpConfig::DoSilent = 0x0000000000004000LL
static
const uint64_t XrdCpConfig::DoSources = 0x0000000000008000LL
static
const uint64_t XrdCpConfig::DoStreams = 0x0000000000010000LL
static
const uint64_t XrdCpConfig::DoTlsMLF = 0x0000000008000000LL
static
const uint64_t XrdCpConfig::DoTlsNoData = 0x0000000002000000LL
static
const uint64_t XrdCpConfig::DoTpc = 0x0000000000020000LL
static
const uint64_t XrdCpConfig::DoTpcDlgt = 0x0000000000800000LL
static
const uint64_t XrdCpConfig::DoTpcOnly = 0x0000000000100000LL
static
const uint64_t XrdCpConfig::DoVerbose = 0x0000000000040000LL
static
const uint64_t XrdCpConfig::DoXAttr = 0x0000000020000000LL
static
const uint64_t XrdCpConfig::DoXrate = 0x0000000000080000LL
static
const uint64_t XrdCpConfig::DoXrateThreashold = 0x0000000200000000LL
static
const uint64_t XrdCpConfig::DoZip = 0x0000000001000000LL
static
const uint64_t XrdCpConfig::DoZipAppend = 0x0000000800000000LL
static
const uint64_t XrdCpConfig::DoZipMtlnCksum = 0x0000000040000000LL
static
XrdCpFile* XrdCpConfig::dstFile
const char* XrdCpConfig::dstOpq
char* XrdCpConfig::inFile
private
defVar* XrdCpConfig::intDefs
defVar* XrdCpConfig::intDend
private
int XrdCpConfig::isLcl
private
XrdSysError* XrdCpConfig::Log
static
int XrdCpConfig::nSrcs
int XrdCpConfig::nStrm
int XrdCpConfig::numFiles
const int XrdCpConfig::OpAllowHttp = 'A'
static
const uint64_t XrdCpConfig::OpCksum = 'C'
static
const uint64_t XrdCpConfig::OpCoerce = 'F'
static
const uint64_t XrdCpConfig::OpContinue = 0x10
static
const uint64_t XrdCpConfig::OpDebug = 'd'
static
const uint64_t XrdCpConfig::OpDynaSrc = 'Z'
static
const uint64_t XrdCpConfig::OpForce = 'f'
static
const uint64_t XrdCpConfig::OpHelp = 'h'
static
const uint64_t XrdCpConfig::OpIfile = 'I'
static
const char* XrdCpConfig::opLetters
staticprivate
const uint64_t XrdCpConfig::OpLicense = 'H'
static
const uint64_t XrdCpConfig::OpNoPbar = 'N'
static
const uint64_t XrdCpConfig::OpNoTlsOK = 0x05
static
const uint64_t XrdCpConfig::OpParallel = 0x04
static
const uint64_t XrdCpConfig::OpPath = 'p'
static
const uint64_t XrdCpConfig::OpPosc = 'P'
static
const uint64_t XrdCpConfig::OpProxy = 'D'
static
const uint64_t XrdCpConfig::OpRecurse = 'r'
static
const uint64_t XrdCpConfig::OpRecursv = 'R'
static
const uint64_t XrdCpConfig::OpRetry = 't'
static
const uint64_t XrdCpConfig::OpRetryPolicy = 0x12
static
const uint64_t XrdCpConfig::OpRmOnBadCksum = 0x09
static
const uint64_t XrdCpConfig::OpServer = 0x03
static
const uint64_t XrdCpConfig::OpSilent = 's'
static
const uint64_t XrdCpConfig::OpSources = 'y'
static
long long XrdCpConfig::OpSpec

Referenced by Want().

const uint64_t XrdCpConfig::OpStreams = 'S'
static
const int XrdCpConfig::opt1Src = 0x00000001
static
const uint64_t XrdCpConfig::OpTlsMLF = 0x06
static
const uint64_t XrdCpConfig::OpTlsNoData = 'E'
static
const int XrdCpConfig::optNoLclCp = 0x00000010
static
const int XrdCpConfig::optNoStdIn = 0x00000008
static
const int XrdCpConfig::optNoXtnd = 0x00000002
static
const uint64_t XrdCpConfig::OpTpc = 'T'
static
const int XrdCpConfig::optRmtRec = 0x00000004
static
int XrdCpConfig::Opts
private
struct option XrdCpConfig::opVec[]
staticprivate
const uint64_t XrdCpConfig::OpVerbose = 'v'
static
const uint64_t XrdCpConfig::OpVersion = 'V'
static
const uint64_t XrdCpConfig::OpXAttr = 0x07
static
const uint64_t XrdCpConfig::OpXrate = 'X'
static
const uint64_t XrdCpConfig::OpXrateThreashold = 0x11
static
const uint64_t XrdCpConfig::OpZip = 'z'
static
const uint64_t XrdCpConfig::OpZipAppend = 0x13
static
const uint64_t XrdCpConfig::OpZipMtlnCksum = 0x08
static
int XrdCpConfig::Parallel
int XrdCpConfig::parmCnt
private
char** XrdCpConfig::parmVal
private
XrdCpFile* XrdCpConfig::pFile
private
const char* XrdCpConfig::Pgm
char* XrdCpConfig::pHost
XrdCpFile* XrdCpConfig::pLast
private
const char* XrdCpConfig::PName
private
int XrdCpConfig::pPort
XrdCpFile* XrdCpConfig::pPrev
private
int XrdCpConfig::Retry
std::string XrdCpConfig::RetryPolicy
XrdCpFile* XrdCpConfig::srcFile
const char* XrdCpConfig::srcOpq
defVar* XrdCpConfig::strDefs
defVar* XrdCpConfig::strDend
private
long long XrdCpConfig::totBytes
int XrdCpConfig::Verbose
long long XrdCpConfig::xRate
long long XrdCpConfig::xRateThreashold
char* XrdCpConfig::zipFile

The documentation for this class was generated from the following file: