xrootd
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
XrdCpConfig Class Reference

#include <XrdCpConfig.hh>

Collaboration diagram for XrdCpConfig:
Collaboration graph
[legend]

List of all members.

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

defVar * intDefs
defVar * strDefs
const char * dstOpq
const char * srcOpq
const char * Pgm
long long xRate
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
XrdCks * CksMan
XrdCksCalc * CksObj
const char * CksVal
XrdCpFile * srcFile
XrdCpFile * dstFile

Static Public Attributes

static XrdSysError * Log = &XrdCpConfiguration::eDest
static const int DoAdler = 0x00000001
static const int OpCksum = 'C'
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 = 0x00100000
static const int OpLicense = 'H'
static const int DoMD5 = 0x00000080
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 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 opt1Src = 0x00000001
static const int optNoXtnd = 0x00000002
static const int optRmtRec = 0x00000004
static const int optNoStdIn = 0x00000008

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)

Private Attributes

const char * PName
int Opts
int Argc
char ** Argv
defVar * intDend
defVar * strDend
XrdCpFile * pFile
XrdCpFile * pLast
XrdCpFile * pPrev
char * inFile
char ** parmVal
int parmCnt
int isLcl

Static Private Attributes

static const char * opLetters = ":C:d:D:fFhHI:PrRsS:t:T:vVy:"
static struct option opVec []
static const int dfltSrcs = 12

Constructor & Destructor Documentation

XrdCpConfig::XrdCpConfig ( const char *  pgname)

References XrdCpFile::SetMsgPfx(), and Verbose.


Member Function Documentation

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

References ZMSG.

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

References ZMSG.

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

References ZMSG.

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]

References ZMSG.

void XrdCpConfig::Config ( int  argc,
char **  argv,
int  Opts = 0 
)
int XrdCpConfig::defCks ( const char *  opval) [private]
int XrdCpConfig::defOpq ( const char *  theOp) [private]

References UMSG.

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

References XrdCpConfig::defVar::Next, and UMSG.

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

References UMSG.

const char * XrdCpConfig::Human ( long long  Val,
char *  Buff,
int  Blen 
) [private]
int XrdCpConfig::Legacy ( int  oIndex) [private]

References optind.

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

References FMSG, and XrdVERSION.

void XrdCpConfig::License ( ) [private]
const char * XrdCpConfig::OpName ( ) [private]

References optind.

void XrdCpConfig::ProcFile ( const char *  fname) [private]
void XrdCpConfig::Usage ( int  rc = 0) [private]

References XrdMpx::Opts.

int XrdCpConfig::Want ( int  What) [inline]

References OpSpec.

Referenced by AllOptionsSupported(), doCp_xrd3xrd(), and main().


Member Data Documentation

int XrdCpConfig::Argc [private]
char** XrdCpConfig::Argv [private]

Referenced by doCp(), getCksum(), and main().

Referenced by doCp_loc2xrd(), and doCp_xrd2loc().

Referenced by doCp(), doCp_loc2xrd(), and doCp_xrd2loc().

const char* XrdCpConfig::CksVal

Referenced by genDestCgi(), and main().

const int XrdCpConfig::dfltSrcs = 12 [static, private]

Referenced by main().

const int XrdCpConfig::DoAdler = 0x00000001 [static]
const int XrdCpConfig::DoCkprt = 0x00000004 [static]

Referenced by main().

const int XrdCpConfig::DoCksum = 0x00000002 [static]

Referenced by main().

const int XrdCpConfig::DoCoerce = 0x00000008 [static]

Referenced by main().

const int XrdCpConfig::DoDebug = 0x00000010 [static]
const int XrdCpConfig::DoForce = 0x00000020 [static]

Referenced by main().

const int XrdCpConfig::DoHelp = 0x00000040 [static]
const int XrdCpConfig::DoIfile = 0x00100000 [static]
const int XrdCpConfig::DoMD5 = 0x00000080 [static]
const int XrdCpConfig::DoNoPbar = 0x00000100 [static]

Referenced by doCp_xrd3xrd(), and main().

const int XrdCpConfig::DoPosc = 0x00000200 [static]

Referenced by main().

const int XrdCpConfig::DoProxy = 0x00000400 [static]

Referenced by main().

const int XrdCpConfig::DoRecurse = 0x00000800 [static]

Referenced by main().

const int XrdCpConfig::DoRetry = 0x00001000 [static]

Referenced by main().

const int XrdCpConfig::DoServer = 0x00002000 [static]

Referenced by AllOptionsSupported(), and main().

const int XrdCpConfig::DoSilent = 0x00004000 [static]

Referenced by main().

const int XrdCpConfig::DoSources = 0x00008000 [static]

Referenced by main().

const int XrdCpConfig::DoStreams = 0x00010000 [static]

Referenced by main().

const int XrdCpConfig::DoTpc = 0x00020000 [static]

Referenced by main().

const int XrdCpConfig::DoTpcOnly = 0x00100000 [static]

Referenced by main().

const int XrdCpConfig::DoVerbose = 0x00040000 [static]
const int XrdCpConfig::DoXrate = 0x00080000 [static]

Referenced by main().

const char* XrdCpConfig::dstOpq

Referenced by doCp(), genDestCgi(), and main().

char* XrdCpConfig::inFile [private]

Referenced by main(), and ProcessCommandLineEnv().

int XrdCpConfig::isLcl [private]

Referenced by main().

const int XrdCpConfig::OpCksum = 'C' [static]
const int XrdCpConfig::OpCoerce = 'F' [static]
const int XrdCpConfig::OpDebug = 'd' [static]
const int XrdCpConfig::OpForce = 'f' [static]
const int XrdCpConfig::OpHelp = 'h' [static]
const int XrdCpConfig::OpIfile = 'I' [static]
const char * XrdCpConfig::opLetters = ":C:d:D:fFhHI:PrRsS:t:T:vVy:" [static, private]
const int XrdCpConfig::OpLicense = 'H' [static]
const int XrdCpConfig::OpNoPbar = 'N' [static]
const int XrdCpConfig::OpPosc = 'P' [static]
const int XrdCpConfig::OpProxy = 'D' [static]
const int XrdCpConfig::OpRecurse = 'r' [static]
const int XrdCpConfig::OpRecursv = 'R' [static]
const int XrdCpConfig::OpRetry = 't' [static]
const int XrdCpConfig::OpServer = 0x03 [static]
const int XrdCpConfig::OpSilent = 's' [static]
const int XrdCpConfig::OpSources = 'y' [static]

Referenced by Want().

const int XrdCpConfig::OpStreams = 'S' [static]
const int XrdCpConfig::opt1Src = 0x00000001 [static]

Referenced by main().

const int XrdCpConfig::optNoStdIn = 0x00000008 [static]

Referenced by main().

const int XrdCpConfig::optNoXtnd = 0x00000002 [static]

Referenced by main().

const int XrdCpConfig::OpTpc = 'T' [static]
const int XrdCpConfig::optRmtRec = 0x00000004 [static]
int XrdCpConfig::Opts [private]
struct option XrdCpConfig::opVec[] [static, private]
const int XrdCpConfig::OpVerbose = 'v' [static]
const int XrdCpConfig::OpVersion = 'V' [static]
const int XrdCpConfig::OpXrate = 'X' [static]
int XrdCpConfig::parmCnt [private]
char** XrdCpConfig::parmVal [private]
const char* XrdCpConfig::Pgm

Referenced by AllOptionsSupported(), and main().

const char* XrdCpConfig::PName [private]

Referenced by main().

Referenced by main().

Referenced by main().

const char* XrdCpConfig::srcOpq

Referenced by doCp(), and main().

Referenced by main(), and ProcessCommandLineEnv().

long long XrdCpConfig::xRate

Referenced by AllOptionsSupported().


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