1 #ifndef __XRDCPCONFIG_HH__
2 #define __XRDCPCONFIG_HH__
54 union {
const char *strVal;
57 defVar(
const char *vn,
const char *vl)
100 static const uint64_t
DoCksrc = 0x0000000000000001LL;
101 static const uint64_t
DoCksum = 0x0000000000000002LL;
102 static const uint64_t
DoCkprt = 0x0000000000000004LL;
105 static const uint64_t
DoCoerce = 0x0000000000000008LL;
108 static const uint64_t
DoDebug = 0x0000000000000010LL;
111 static const uint64_t
DoForce = 0x0000000000000020LL;
114 static const uint64_t
DoHelp = 0x0000000000000040LL;
117 static const uint64_t
DoIfile = 0x0000000000000080LL;
122 static const uint64_t
DoNoPbar = 0x0000000000000100LL;
125 static const uint64_t
DoPosc = 0x0000000000000200LL;
128 static const uint64_t
DoProxy = 0x0000000000000400LL;
135 static const uint64_t
DoRetry = 0x0000000000001000LL;
138 static const uint64_t
DoServer = 0x0000000000002000LL;
141 static const uint64_t
DoSilent = 0x0000000000004000LL;
150 static const uint64_t
DoTpc = 0x0000000000020000LL;
160 static const uint64_t
DoXrate = 0x0000000000080000LL;
171 static const uint64_t
DoZip = 0x0000000001000000LL;
180 static const uint64_t
DoTlsMLF = 0x0000000008000000LL;
183 static const uint64_t
DoPath = 0x0000000010000000LL;
186 static const uint64_t
DoXAttr = 0x0000000020000000LL;
222 void Config(
int argc,
char **argv,
int Opts=0);
226 inline int Want(uint64_t What) {
return (
OpSpec & What) != 0;}
232 int a2i(
const char *item,
int *val,
int minv,
int maxv=-1);
233 int a2l(
const char *item,
long long *val,
234 long long minv,
long long maxv=-1);
235 int a2t(
const char *item,
int *val,
int minv,
int maxv=-1);
236 int a2x(
const char *Val,
char *Buff,
int Vlen);
237 int a2z(
const char *item,
long long *val,
238 long long minv,
long long maxv=-1);
239 int defCks(
const char *opval);
240 int defOpq(
const char *theOp);
241 int defOpt(
const char *theOp,
const char *theArg);
242 void defPxy(
const char *opval);
243 const char *Human(
long long Val,
char *Buff,
int Blen);
244 int Legacy(
int oIndex);
245 int Legacy(
const char *theOp,
const char *theArg);
247 const char *OpName();
248 void ProcFile(
const char *fname);
249 void Usage(
int rc=0);
251 static void toLower(
char cstr[] )
253 for(
int i = 0; cstr[i]; ++i )
254 cstr[i] = tolower( cstr[i] );
265 static const char *opLetters;
266 static struct option opVec[];
268 static const int dfltSrcs = 12;
defVar(const char *vn, const char *vl)
defVar(const char *vn, int vl)
static const uint64_t OpVerbose
static const uint64_t DoHelp
static const uint64_t OpXAttr
static const uint64_t DoProxy
void Config(int argc, char **argv, int Opts=0)
static const uint64_t OpRecurse
static const uint64_t OpContinue
static const uint64_t DoRetry
static const uint64_t DoStreams
std::vector< std::string > AddCksVal
static const uint64_t OpParallel
static const uint64_t OpZipAppend
static const uint64_t DoZipMtlnCksum
static const uint64_t OpSilent
static const uint64_t OpTlsMLF
static const uint64_t OpNoTlsOK
static const uint64_t OpRetryPolicy
static const uint64_t OpDebug
XrdCpConfig(const char *pgname)
static const uint64_t OpRetry
static const uint64_t DoNoPbar
static const uint64_t OpXrateThreshold
static const uint64_t DoCoerce
static const uint64_t OpServer
static const uint64_t DoForce
static const uint64_t OpVersion
static const uint64_t OpTpc
static const uint64_t DoParallel
static const uint64_t DoRmOnBadCksum
static const uint64_t DoNoTlsOK
static const uint64_t OpPath
static const uint64_t OpRecursv
static const uint64_t OpProxy
static const uint64_t DoTpc
static const uint64_t DoDebug
static const uint64_t OpSources
static const uint64_t DoCksum
static const uint64_t OpPosc
static const uint64_t DoXrate
static const uint64_t DoCksrc
static const uint64_t OpZipMtlnCksum
static const uint64_t OpXrate
static const uint64_t DoTpcDlgt
static const uint64_t DoZip
static const uint64_t DoVerbose
static const uint64_t DoContinue
static const uint64_t OpCksum
static const int OpAllowHttp
static const uint64_t DoRecurse
static const uint64_t OpTlsNoData
static const int optNoLclCp
static const uint64_t DoXrateThreshold
static const uint64_t DoZipAppend
static const uint64_t OpIfile
static const uint64_t DoDynaSrc
static const int DoAllowHttp
static const int optNoStdIn
static const uint64_t OpNoPbar
static const uint64_t DoSources
static const uint64_t DoSilent
static const uint64_t OpForce
static const uint64_t OpRmOnBadCksum
static const uint64_t OpDynaSrc
static const uint64_t DoXAttr
static const int optNoXtnd
static const uint64_t DoTlsMLF
static const uint64_t OpZip
static const uint64_t OpLicense
static const uint64_t DoIfile
static const uint64_t OpHelp
static const int optRmtRec
static const uint64_t DoRetryPolicy
static const uint64_t DoPath
static const uint64_t DoPosc
static const uint64_t OpStreams
static const uint64_t OpCoerce
static const uint64_t DoTpcOnly
static const uint64_t DoTlsNoData
static const uint64_t DoServer
static const uint64_t DoCkprt