xrootd
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 (int What)
 
 XrdCpConfig (const char *pgname)
 
 ~XrdCpConfig ()
 

Public Attributes

defVarintDefs
 
defVarstrDefs
 
const char * dstOpq
 
const char * srcOpq
 
const char * Pgm
 
long long xRate
 
int Parallel
 
char * pHost
 
int pPort
 
int OpSpec
 
int Dlvl
 
int nSrcs
 
int nStrm
 
int Retry
 
int Verbose
 
int CksLen
 
int numFiles
 
long long totBytes
 
XrdCksData CksData
 
XrdCksCksMan
 
XrdCksCalcCksObj
 
const char * CksVal
 
XrdCpFilesrcFile
 
XrdCpFiledstFile
 
char * zipFile
 

Static Public Attributes

static XrdSysErrorLog
 
static const int OpCksum = 'C'
 
static const int DoCksrc = 0x00000001
 
static const int DoCksum = 0x00000002
 
static const int DoCkprt = 0x00000004
 
static const int OpCoerce = 'F'
 
static const int DoCoerce = 0x00000008
 
static const int OpDebug = 'd'
 
static const int DoDebug = 0x00000010
 
static const int OpForce = 'f'
 
static const int DoForce = 0x00000020
 
static const int OpHelp = 'h'
 
static const int DoHelp = 0x00000040
 
static const int OpIfile = 'I'
 
static const int DoIfile = 0x00000080
 
static const int OpLicense = 'H'
 
static const int OpNoPbar = 'N'
 
static const int DoNoPbar = 0x00000100
 
static const int OpPosc = 'P'
 
static const int DoPosc = 0x00000200
 
static const int OpProxy = 'D'
 
static const int DoProxy = 0x00000400
 
static const int OpRecurse = 'r'
 
static const int OpRecursv = 'R'
 
static const int DoRecurse = 0x00000800
 
static const int OpRetry = 't'
 
static const int DoRetry = 0x00001000
 
static const int OpServer = 0x03
 
static const int DoServer = 0x00002000
 
static const int OpSilent = 's'
 
static const int DoSilent = 0x00004000
 
static const int OpSources = 'y'
 
static const int DoSources = 0x00008000
 
static const int OpStreams = 'S'
 
static const int DoStreams = 0x00010000
 
static const int OpTpc = 'T'
 
static const int DoTpc = 0x00020000
 
static const int DoTpcOnly = 0x00100000
 
static const int DoTpcDlgt = 0x00800000
 
static const int OpVerbose = 'v'
 
static const int DoVerbose = 0x00040000
 
static const int OpVersion = 'V'
 
static const int OpXrate = 'X'
 
static const int DoXrate = 0x00080000
 
static const int OpParallel = 0x04
 
static const int DoParallel = 0x00200000
 
static const int OpDynaSrc = 'Z'
 
static const int DoDynaSrc = 0x00400000
 
static const int OpZip = 'z'
 
static const int DoZip = 0x01000000
 
static const int OpPath = 'p'
 
static const int DoPath = 0x0000000010000000LL
 
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 ( int  What)
inline

References OpSpec.

Member Data Documentation

◆ 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 int XrdCpConfig::DoCkprt = 0x00000004
static

◆ DoCksrc

const int XrdCpConfig::DoCksrc = 0x00000001
static

◆ DoCksum

const int XrdCpConfig::DoCksum = 0x00000002
static

◆ DoCoerce

const int XrdCpConfig::DoCoerce = 0x00000008
static

◆ DoDebug

const int XrdCpConfig::DoDebug = 0x00000010
static

◆ DoDynaSrc

const int XrdCpConfig::DoDynaSrc = 0x00400000
static

◆ DoForce

const int XrdCpConfig::DoForce = 0x00000020
static

◆ DoHelp

const int XrdCpConfig::DoHelp = 0x00000040
static

◆ DoIfile

const int XrdCpConfig::DoIfile = 0x00000080
static

◆ DoNoPbar

const int XrdCpConfig::DoNoPbar = 0x00000100
static

◆ DoParallel

const int XrdCpConfig::DoParallel = 0x00200000
static

◆ DoPath

const int XrdCpConfig::DoPath = 0x0000000010000000LL
static

◆ DoPosc

const int XrdCpConfig::DoPosc = 0x00000200
static

◆ DoProxy

const int XrdCpConfig::DoProxy = 0x00000400
static

◆ DoRecurse

const int XrdCpConfig::DoRecurse = 0x00000800
static

◆ DoRetry

const int XrdCpConfig::DoRetry = 0x00001000
static

◆ DoServer

const int XrdCpConfig::DoServer = 0x00002000
static

◆ DoSilent

const int XrdCpConfig::DoSilent = 0x00004000
static

◆ DoSources

const int XrdCpConfig::DoSources = 0x00008000
static

◆ DoStreams

const int XrdCpConfig::DoStreams = 0x00010000
static

◆ DoTpc

const int XrdCpConfig::DoTpc = 0x00020000
static

◆ DoTpcDlgt

const int XrdCpConfig::DoTpcDlgt = 0x00800000
static

◆ DoTpcOnly

const int XrdCpConfig::DoTpcOnly = 0x00100000
static

◆ DoVerbose

const int XrdCpConfig::DoVerbose = 0x00040000
static

◆ DoXrate

const int XrdCpConfig::DoXrate = 0x00080000
static

◆ DoZip

const int XrdCpConfig::DoZip = 0x01000000
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 int XrdCpConfig::OpCksum = 'C'
static

◆ OpCoerce

const int XrdCpConfig::OpCoerce = 'F'
static

◆ OpDebug

const int XrdCpConfig::OpDebug = 'd'
static

◆ OpDynaSrc

const int XrdCpConfig::OpDynaSrc = 'Z'
static

◆ OpForce

const int XrdCpConfig::OpForce = 'f'
static

◆ OpHelp

const int XrdCpConfig::OpHelp = 'h'
static

◆ OpIfile

const int XrdCpConfig::OpIfile = 'I'
static

◆ opLetters

const char* XrdCpConfig::opLetters
staticprivate

◆ OpLicense

const int XrdCpConfig::OpLicense = 'H'
static

◆ OpNoPbar

const int XrdCpConfig::OpNoPbar = 'N'
static

◆ OpParallel

const int XrdCpConfig::OpParallel = 0x04
static

◆ OpPath

const int XrdCpConfig::OpPath = 'p'
static

◆ OpPosc

const int XrdCpConfig::OpPosc = 'P'
static

◆ OpProxy

const int XrdCpConfig::OpProxy = 'D'
static

◆ OpRecurse

const int XrdCpConfig::OpRecurse = 'r'
static

◆ OpRecursv

const int XrdCpConfig::OpRecursv = 'R'
static

◆ OpRetry

const int XrdCpConfig::OpRetry = 't'
static

◆ OpServer

const int XrdCpConfig::OpServer = 0x03
static

◆ OpSilent

const int XrdCpConfig::OpSilent = 's'
static

◆ OpSources

const int XrdCpConfig::OpSources = 'y'
static

◆ OpSpec

int XrdCpConfig::OpSpec

Referenced by Want().

◆ OpStreams

const int XrdCpConfig::OpStreams = 'S'
static

◆ opt1Src

const int XrdCpConfig::opt1Src = 0x00000001
static

◆ optNoLclCp

const int XrdCpConfig::optNoLclCp = 0x00000010
static

◆ optNoStdIn

const int XrdCpConfig::optNoStdIn = 0x00000008
static

◆ optNoXtnd

const int XrdCpConfig::optNoXtnd = 0x00000002
static

◆ OpTpc

const int XrdCpConfig::OpTpc = 'T'
static

◆ optRmtRec

const int XrdCpConfig::optRmtRec = 0x00000004
static

◆ Opts

int XrdCpConfig::Opts
private

◆ opVec

struct option XrdCpConfig::opVec[]
staticprivate

◆ OpVerbose

const int XrdCpConfig::OpVerbose = 'v'
static

◆ OpVersion

const int XrdCpConfig::OpVersion = 'V'
static

◆ OpXrate

const int XrdCpConfig::OpXrate = 'X'
static

◆ OpZip

const int XrdCpConfig::OpZip = 'z'
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

◆ 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

◆ zipFile

char* XrdCpConfig::zipFile

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