xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XrdOucExport.hh
Go to the documentation of this file.
1 #ifndef __XRDOUCEXPORT_HH_
2 #define __XRDOUCEXPORT_HH_
3 /******************************************************************************/
4 /* */
5 /* X r d O u c E x p o r t . h h */
6 /* */
7 /* (c) 2007 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 /* This file is part of the XRootD software suite. */
13 /* */
14 /* XRootD is free software: you can redistribute it and/or modify it under */
15 /* the terms of the GNU Lesser General Public License as published by the */
16 /* Free Software Foundation, either version 3 of the License, or (at your */
17 /* option) any later version. */
18 /* */
19 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22 /* License for more details. */
23 /* */
24 /* You should have received a copy of the GNU Lesser General Public License */
25 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27 /* */
28 /* The copyright holder's institutional names and contributor's names may not */
29 /* be used to endorse or promote products derived from this software without */
30 /* specific prior written permission of the institution or contributor. */
31 /******************************************************************************/
32 
33 #include "XrdSys/XrdSysError.hh"
34 #include "XrdOuc/XrdOucPList.hh"
35 #include "XrdOuc/XrdOucStream.hh"
36 
37 /******************************************************************************/
38 /* F l a g V a l u e s */
39 /******************************************************************************/
40 
41 // 0 1 2 3 4 5 6 7
42 #define XRDEXP_READONLY 0x0000000000000001LL
43 #define XRDEXP_FORCERO 0x0000000000000002LL
44 #define XRDEXP_ROW_X 0x0000000300000000LL
45 #define XRDEXP_NOTRW 0x0000000000000003LL
46 #define XRDEXP_NODREAD 0x0000000000000004LL
47 #define XRDEXP_DREAD_X 0x0000000400000000LL
48 #define XRDEXP_RCREATE 0x0000000000000008LL
49 #define XRDEXP_RCREATE_X 0x0000000800000000LL
50 #define XRDEXP_NOCHECK 0x0000000000000010LL
51 #define XRDEXP_CHECK_X 0x0000001000000000LL
52 #define XRDEXP_STAGE 0x0000000000000020LL
53 #define XRDEXP_STAGE_X 0x0000002000000000LL
54 #define XRDEXP_MIG 0x0000000000000400LL
55 #define XRDEXP_MIG_X 0x0000040000000000LL
56 #define XRDEXP_MMAP 0x0000000000000800LL
57 #define XRDEXP_MMAP_X 0x0000080000000000LL
58 #define XRDEXP_MLOK 0x0000000000001000LL
59 #define XRDEXP_MLOK_X 0x0000100000000000LL
60 #define XRDEXP_MKEEP 0x0000000000002000LL
61 #define XRDEXP_MKEEP_X 0x0000200000000000LL
62 #define XRDEXP_PURGE 0x0000000000004000LL
63 #define XRDEXP_PURGE_X 0x0000400000000000LL
64 #define XRDEXP_NOXATTR 0x0000000000008000LL
65 #define XRDEXP_NOXATTR_X 0x0000800000000000LL
66 #define XRDEXP_INPLACE 0x0000000000010000LL
67 #define XRDEXP_INPLACE_X 0x0001000000000000LL
68 #define XRDEXP_MWMODE 0x0000000000020000LL
69 #define XRDEXP_MWMODE_X 0x0002000000000000LL
70 #define XRDEXP_PFCACHE 0x0000000000040000LL
71 #define XRDEXP_PFCACHE_X 0x0004000000000000LL
72 #define XRDEXP_LOCAL 0x0000000000080000LL
73 #define XRDEXP_LOCAL_X 0x0008000000000000LL
74 #define XRDEXP_GLBLRO 0x0000000000100000LL
75 #define XRDEXP_GLBLRO_X 0x0018000000000000LL
76 #define XRDEXP_STAGEMM 0x0000000000200020LL
77 // 0x0020000000000000LL
78 // 0x0040000000400000LL
79 // 0x0080000000800000LL
80 #define XRDEXP_AVAILABLE 0xff000000ff000000LL
81 #define XRDEXP_MASKSHIFT 32
82 #define XRDEXP_SETTINGS 0x00000000ffffffffLL
83 
84 #define XRDEXP_MEMAP 0x0000000000003800LL
85 #define XRDEXP_REMOTE 0x0000000000000420LL
86 #define XRDEXP_MIGPRG 0x0000000000004400LL
87 
88 #define XRDEXP_ROOTDIR 0x0000000001000000LL
89 
90 
91 // The following options are prescreened elsewhere
92 //
93 #define XRDEXP_NOLK 0LL
94 #define XRDEXP_NOLK_X 0LL
95 
96 /******************************************************************************/
97 /* C l a s s X r d E x p o r t */
98 /******************************************************************************/
99 
100 class XrdOucPListAnchor;
101 
103 {
104 public:
105 
106 static unsigned long long ParseDefs(XrdOucStream &Config, XrdSysError &Eroute,
107  unsigned long long Flags);
108 
109 static XrdOucPList *ParsePath(XrdOucStream &Config, XrdSysError &Eroute,
110  XrdOucPListAnchor &Export,
111  unsigned long long Defopts);
112 
115 
116 private:
117 };
118 #endif
Definition: XrdOucPList.hh:88
static XrdOucPList * ParsePath(XrdOucStream &Config, XrdSysError &Eroute, XrdOucPListAnchor &Export, unsigned long long Defopts)
static unsigned long long ParseDefs(XrdOucStream &Config, XrdSysError &Eroute, unsigned long long Flags)
Definition: XrdOucStream.hh:46
XrdOucExport()
Definition: XrdOucExport.hh:113
~XrdOucExport()
Definition: XrdOucExport.hh:114
Definition: XrdSysError.hh:89
XrdCmsConfig Config
Definition: XrdOucPList.hh:37
Definition: XrdOucExport.hh:102