xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdCks
XrdCksConfig.hh
Go to the documentation of this file.
1
#ifndef __XRDCKSCONFIG_HH__
2
#define __XRDCKSCONFIG_HH__
3
/******************************************************************************/
4
/* */
5
/* X r d C k s C o n f i g . h h */
6
/* */
7
/* (c) 2011 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
#include "
XrdOuc/XrdOucTList.hh
"
14
15
class
XrdCks
;
16
class
XrdOucStream
;
17
class
XrdSysError
;
18
19
class
XrdCksConfig
20
{
21
public
:
22
23
XrdCks
*
Configure
(
const
char
*dfltCalc=0,
int
rdsz=0);
24
25
int
Manager
() {
return
CksLib
!= 0;}
26
27
int
Manager
(
const
char
*
Path
,
const
char
*Parms);
28
29
int
ParseLib
(
XrdOucStream
&
Config
);
30
31
XrdCksConfig
(
const
char
*cFN,
XrdSysError
*Eroute)
32
:
eDest
(Eroute),
cfgFN
(cFN),
CksLib
(0),
CksParm
(0),
33
CksList
(0),
CksLast
(0) {}
34
~XrdCksConfig
() {
XrdOucTList
*tP;
35
if
(
CksLib
) free(
CksLib
);
36
if
(
CksParm
) free(
CksParm
);
37
while
((tP =
CksList
)) {
CksList
= tP->
next
;
delete
tP;}
38
}
39
40
private
:
41
XrdCks
*
getCks
(
int
rdsz);
42
43
XrdSysError
*
eDest
;
44
const
char
*
cfgFN
;
45
char
*
CksLib
;
46
char
*
CksParm
;
47
XrdOucTList
*
CksList
;
48
XrdOucTList
*
CksLast
;
49
};
50
#endif
Generated by
1.8.1.2