xrootd
Loading...
Searching...
No Matches
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 xRateThreshold
 
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 OpXrateThreshold = 0x11
 
static const uint64_t DoXrateThreshold = 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::XrdCpConfig ( const char *  pgname)

◆ ~XrdCpConfig()

XrdCpConfig::~XrdCpConfig ( )

Member Function Documentation

◆ a2i()

int XrdCpConfig::a2i ( const char *  item,
int *  val,
int  minv,
int  maxv = -1 
)
private

◆ a2l()

int XrdCpConfig::a2l ( const char *  item,
long long *  val,
long long  minv,
long long  maxv = -1 
)
private

◆ a2t()

int XrdCpConfig::a2t ( const char *  item,
int *  val,
int  minv,
int  maxv = -1 
)
private

◆ a2x()

int XrdCpConfig::a2x ( const char *  Val,
char *  Buff,
int  Vlen 
)
private

◆ a2z()

int XrdCpConfig::a2z ( const char *  item,
long long *  val,
long long  minv,
long long  maxv = -1 
)
private

◆ Config()

void XrdCpConfig::Config ( int  argc,
char **  argv,
int  Opts = 0 
)

◆ defCks()

int XrdCpConfig::defCks ( const char *  opval)
private

◆ defOpq()

int XrdCpConfig::defOpq ( const char *  theOp)
private

◆ defOpt()

int XrdCpConfig::defOpt ( const char *  theOp,
const char *  theArg 
)
private

◆ defPxy()

void XrdCpConfig::defPxy ( const char *  opval)
private

◆ Human()

const char * XrdCpConfig::Human ( long long  Val,
char *  Buff,
int  Blen 
)
private

◆ Legacy() [1/2]

int XrdCpConfig::Legacy ( const char *  theOp,
const char *  theArg 
)
private

◆ Legacy() [2/2]

int XrdCpConfig::Legacy ( int  oIndex)
private

◆ License()

void XrdCpConfig::License ( )
private

◆ OpName()

const char * XrdCpConfig::OpName ( )
private

◆ ProcFile()

void XrdCpConfig::ProcFile ( const char *  fname)
private

◆ toLower()

static void XrdCpConfig::toLower ( char  cstr[])
inlinestaticprivate

◆ Usage()

void XrdCpConfig::Usage ( int  rc = 0)
private

◆ Want()

int XrdCpConfig::Want ( uint64_t  What)
inline

References OpSpec.

Member Data Documentation

◆ AddCksVal

std::vector<std::string> XrdCpConfig::AddCksVal

◆ Argc

int XrdCpConfig::Argc
private

◆ Argv

char** XrdCpConfig::Argv
private

◆ CksData

XrdCksData XrdCpConfig::CksData

◆ CksLen

int XrdCpConfig::CksLen

◆ CksMan

XrdCks* XrdCpConfig::CksMan

◆ CksObj

XrdCksCalc* XrdCpConfig::CksObj

◆ CksVal

const char* XrdCpConfig::CksVal

◆ dfltSrcs

const int XrdCpConfig::dfltSrcs = 12
staticprivate

◆ Dlvl

int XrdCpConfig::Dlvl

◆ DoAllowHttp

const int XrdCpConfig::DoAllowHttp = 0x2000000
static

◆ DoCkprt

const uint64_t XrdCpConfig::DoCkprt = 0x0000000000000004LL
static

◆ DoCksrc

const uint64_t XrdCpConfig::DoCksrc = 0x0000000000000001LL
static

◆ DoCksum

const uint64_t XrdCpConfig::DoCksum = 0x0000000000000002LL
static

◆ DoCoerce

const uint64_t XrdCpConfig::DoCoerce = 0x0000000000000008LL
static

◆ DoContinue

const uint64_t XrdCpConfig::DoContinue = 0x0000000100000000LL
static

◆ DoDebug

const uint64_t XrdCpConfig::DoDebug = 0x0000000000000010LL
static

◆ DoDynaSrc

const uint64_t XrdCpConfig::DoDynaSrc = 0x0000000000400000LL
static

◆ DoForce

const uint64_t XrdCpConfig::DoForce = 0x0000000000000020LL
static

◆ DoHelp

const uint64_t XrdCpConfig::DoHelp = 0x0000000000000040LL
static

◆ DoIfile

const uint64_t XrdCpConfig::DoIfile = 0x0000000000000080LL
static

◆ DoNoPbar

const uint64_t XrdCpConfig::DoNoPbar = 0x0000000000000100LL
static

◆ DoNoTlsOK

const uint64_t XrdCpConfig::DoNoTlsOK = 0x0000000004000000LL
static

◆ DoParallel

const uint64_t XrdCpConfig::DoParallel = 0x0000000000200000LL
static

◆ DoPath

const uint64_t XrdCpConfig::DoPath = 0x0000000010000000LL
static

◆ DoPosc

const uint64_t XrdCpConfig::DoPosc = 0x0000000000000200LL
static

◆ DoProxy

const uint64_t XrdCpConfig::DoProxy = 0x0000000000000400LL
static

◆ DoRecurse

const uint64_t XrdCpConfig::DoRecurse = 0x0000000000000800LL
static

◆ DoRetry

const uint64_t XrdCpConfig::DoRetry = 0x0000000000001000LL
static

◆ DoRetryPolicy

const uint64_t XrdCpConfig::DoRetryPolicy = 0x0000000400000000LL
static

◆ DoRmOnBadCksum

const uint64_t XrdCpConfig::DoRmOnBadCksum = 0x0000000080000000LL
static

◆ DoServer

const uint64_t XrdCpConfig::DoServer = 0x0000000000002000LL
static

◆ DoSilent

const uint64_t XrdCpConfig::DoSilent = 0x0000000000004000LL
static

◆ DoSources

const uint64_t XrdCpConfig::DoSources = 0x0000000000008000LL
static

◆ DoStreams

const uint64_t XrdCpConfig::DoStreams = 0x0000000000010000LL
static

◆ DoTlsMLF

const uint64_t XrdCpConfig::DoTlsMLF = 0x0000000008000000LL
static

◆ DoTlsNoData

const uint64_t XrdCpConfig::DoTlsNoData = 0x0000000002000000LL
static

◆ DoTpc

const uint64_t XrdCpConfig::DoTpc = 0x0000000000020000LL
static

◆ DoTpcDlgt

const uint64_t XrdCpConfig::DoTpcDlgt = 0x0000000000800000LL
static

◆ DoTpcOnly

const uint64_t XrdCpConfig::DoTpcOnly = 0x0000000000100000LL
static

◆ DoVerbose

const uint64_t XrdCpConfig::DoVerbose = 0x0000000000040000LL
static

◆ DoXAttr

const uint64_t XrdCpConfig::DoXAttr = 0x0000000020000000LL
static

◆ DoXrate

const uint64_t XrdCpConfig::DoXrate = 0x0000000000080000LL
static

◆ DoXrateThreshold

const uint64_t XrdCpConfig::DoXrateThreshold = 0x0000000200000000LL
static

◆ DoZip

const uint64_t XrdCpConfig::DoZip = 0x0000000001000000LL
static

◆ DoZipAppend

const uint64_t XrdCpConfig::DoZipAppend = 0x0000000800000000LL
static

◆ DoZipMtlnCksum

const uint64_t XrdCpConfig::DoZipMtlnCksum = 0x0000000040000000LL
static

◆ dstFile

XrdCpFile* XrdCpConfig::dstFile

◆ dstOpq

const char* XrdCpConfig::dstOpq

◆ inFile

char* XrdCpConfig::inFile
private

◆ intDefs

defVar* XrdCpConfig::intDefs

◆ intDend

defVar* XrdCpConfig::intDend
private

◆ isLcl

int XrdCpConfig::isLcl
private

◆ Log

XrdSysError* XrdCpConfig::Log
static

◆ nSrcs

int XrdCpConfig::nSrcs

◆ nStrm

int XrdCpConfig::nStrm

◆ numFiles

int XrdCpConfig::numFiles

◆ OpAllowHttp

const int XrdCpConfig::OpAllowHttp = 'A'
static

◆ OpCksum

const uint64_t XrdCpConfig::OpCksum = 'C'
static

◆ OpCoerce

const uint64_t XrdCpConfig::OpCoerce = 'F'
static

◆ OpContinue

const uint64_t XrdCpConfig::OpContinue = 0x10
static

◆ OpDebug

const uint64_t XrdCpConfig::OpDebug = 'd'
static

◆ OpDynaSrc

const uint64_t XrdCpConfig::OpDynaSrc = 'Z'
static

◆ OpForce

const uint64_t XrdCpConfig::OpForce = 'f'
static

◆ OpHelp

const uint64_t XrdCpConfig::OpHelp = 'h'
static

◆ OpIfile

const uint64_t XrdCpConfig::OpIfile = 'I'
static

◆ opLetters

const char* XrdCpConfig::opLetters
staticprivate

◆ OpLicense

const uint64_t XrdCpConfig::OpLicense = 'H'
static

◆ OpNoPbar

const uint64_t XrdCpConfig::OpNoPbar = 'N'
static

◆ OpNoTlsOK

const uint64_t XrdCpConfig::OpNoTlsOK = 0x05
static

◆ OpParallel

const uint64_t XrdCpConfig::OpParallel = 0x04
static

◆ OpPath

const uint64_t XrdCpConfig::OpPath = 'p'
static

◆ OpPosc

const uint64_t XrdCpConfig::OpPosc = 'P'
static

◆ OpProxy

const uint64_t XrdCpConfig::OpProxy = 'D'
static

◆ OpRecurse

const uint64_t XrdCpConfig::OpRecurse = 'r'
static

◆ OpRecursv

const uint64_t XrdCpConfig::OpRecursv = 'R'
static

◆ OpRetry

const uint64_t XrdCpConfig::OpRetry = 't'
static

◆ OpRetryPolicy

const uint64_t XrdCpConfig::OpRetryPolicy = 0x12
static

◆ OpRmOnBadCksum

const uint64_t XrdCpConfig::OpRmOnBadCksum = 0x09
static

◆ OpServer

const uint64_t XrdCpConfig::OpServer = 0x03
static

◆ OpSilent

const uint64_t XrdCpConfig::OpSilent = 's'
static

◆ OpSources

const uint64_t XrdCpConfig::OpSources = 'y'
static

◆ OpSpec

long long XrdCpConfig::OpSpec

Referenced by Want().

◆ OpStreams

const uint64_t XrdCpConfig::OpStreams = 'S'
static

◆ opt1Src

const int XrdCpConfig::opt1Src = 0x00000001
static

◆ OpTlsMLF

const uint64_t XrdCpConfig::OpTlsMLF = 0x06
static

◆ OpTlsNoData

const uint64_t XrdCpConfig::OpTlsNoData = 'E'
static

◆ optNoLclCp

const int XrdCpConfig::optNoLclCp = 0x00000010
static

◆ optNoStdIn

const int XrdCpConfig::optNoStdIn = 0x00000008
static

◆ optNoXtnd

const int XrdCpConfig::optNoXtnd = 0x00000002
static

◆ OpTpc

const uint64_t XrdCpConfig::OpTpc = 'T'
static

◆ optRmtRec

const int XrdCpConfig::optRmtRec = 0x00000004
static

◆ Opts

int XrdCpConfig::Opts
private

◆ opVec

struct option XrdCpConfig::opVec[]
staticprivate

◆ OpVerbose

const uint64_t XrdCpConfig::OpVerbose = 'v'
static

◆ OpVersion

const uint64_t XrdCpConfig::OpVersion = 'V'
static

◆ OpXAttr

const uint64_t XrdCpConfig::OpXAttr = 0x07
static

◆ OpXrate

const uint64_t XrdCpConfig::OpXrate = 'X'
static

◆ OpXrateThreshold

const uint64_t XrdCpConfig::OpXrateThreshold = 0x11
static

◆ OpZip

const uint64_t XrdCpConfig::OpZip = 'z'
static

◆ OpZipAppend

const uint64_t XrdCpConfig::OpZipAppend = 0x13
static

◆ OpZipMtlnCksum

const uint64_t XrdCpConfig::OpZipMtlnCksum = 0x08
static

◆ Parallel

int XrdCpConfig::Parallel

◆ parmCnt

int XrdCpConfig::parmCnt
private

◆ parmVal

char** XrdCpConfig::parmVal
private

◆ pFile

XrdCpFile* XrdCpConfig::pFile
private

◆ Pgm

const char* XrdCpConfig::Pgm

◆ pHost

char* XrdCpConfig::pHost

◆ pLast

XrdCpFile* XrdCpConfig::pLast
private

◆ PName

const char* XrdCpConfig::PName
private

◆ pPort

int XrdCpConfig::pPort

◆ pPrev

XrdCpFile* XrdCpConfig::pPrev
private

◆ Retry

int XrdCpConfig::Retry

◆ RetryPolicy

std::string XrdCpConfig::RetryPolicy

◆ srcFile

XrdCpFile* XrdCpConfig::srcFile

◆ srcOpq

const char* XrdCpConfig::srcOpq

◆ strDefs

defVar* XrdCpConfig::strDefs

◆ strDend

defVar* XrdCpConfig::strDend
private

◆ totBytes

long long XrdCpConfig::totBytes

◆ Verbose

int XrdCpConfig::Verbose

◆ xRate

long long XrdCpConfig::xRate

◆ xRateThreshold

long long XrdCpConfig::xRateThreshold

◆ zipFile

char* XrdCpConfig::zipFile

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