xrootd
XrdCnsSsi.hh
Go to the documentation of this file.
1 #ifndef __XRDCnsSSI_H_
2 #define __XRDCnsSSI_H_
3 /******************************************************************************/
4 /* */
5 /* X r d C n s S s i . h h */
6 /* */
7 /* (c) 2009 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 class XrdCnsSsiDRec;
16 class XrdCnsSsiFRec;
17 struct iovec;
18 
19 class XrdCnsSsi
20 {
21 public:
22 
23 static int List(const char *Host, const char *Path);
24 
25 static int Updt(const char *Host, const char *Path);
26 
27 static int Write(int xFD, struct iovec *iov, int n, int Bytes);
28 
29 static int nErrs;
30 static int nDirs;
31 static int nFiles;
32 
33  XrdCnsSsi() {}
35 
36 private:
37 static XrdCnsSsiDRec *AddDir(char *dP, char *lP);
38 static int AddDel(char *pPo, char *lP);
39 static XrdCnsSsiFRec *AddFile(char *lfn, char *lP);
40 static XrdCnsSsiFRec *AddFile(char *dP, char *fP, char *lP);
41 static void AddSize(char *dP, char *fP, char *lP);
42 static int ApplyLog(const char *Path);
43 static void ApplyLogRec(char *Rec);
44 static void FSize(char *oP, char *iP, int bsz);
45 static int Write(int xFD, char *bP, int bL);
46 static int Write(int xFD, int TOD, const char *Host);
47 
48 };
49 #endif