xrootd
XrdCmsRRData.hh
Go to the documentation of this file.
1 #ifndef __XRDCMSRRDATA_H__
2 #define __XRDCMSRRDATA_H__
3 /******************************************************************************/
4 /* */
5 /* X r d C m s R R D a t a . 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 
13 // $Id$
14 
15 #include <stdlib.h>
16 
17 #include "XProtocol/YProtocol.hh"
18 
20 {
21 public:
22 
23  char *theAuth;
24  char *theSID;
25  char *thePaths;
26  int totLen;
27 
28 // XrdCmsRLData() {} Lack of constructor makes this a POD type
29 // ~XrdCmsRLData() {} Lack of destructor makes this a POD type
30 };
31 
32 
34 {
35 public:
37  char *Path; // all -prepcan
38  char *Opaque; // all -prepcan
39  char *Path2; // mv
40  char *Opaque2; // mv
41  char *Avoid; // locate, select
42  char *Reqid; // prepadd, prepcan
43  char *Notify; // prepadd
44  char *Prty; // prepadd
45  char *Mode; // chmod, mkdir, mkpath, prepadd
46  char *Ident; // all
47  unsigned int Opts; // locate, select
48  int PathLen; // locate, prepadd, select (inc null byte)
49  unsigned int dskFree; // avail, load
50 union {unsigned int dskUtil; // avail
51  int waitVal;
52  };
53  char *Buff; // Buffer underlying the pointers
54  int Blen; // Length of buffer
55  int Dlen; // Length of data in the buffer
56  int Routing; // Routing options
57 
58 enum ArgName
65 
66  Arg_Count // Always the last item which equals the number of elements
67 };
68 
69 static XrdCmsRRData *Objectify(XrdCmsRRData *op=0);
70 
71  int getBuff(size_t bsz);
72 
73 // XrdCmsRRData() {} Lack of constructor makes this a POD type
74 // ~XrdCmsRRData() {} Lack of destructor makes this a POD type
75 
76 XrdCmsRRData *Next; // POD types canot have private members so virtual private
77 };
78 #endif