XRootD
XrdCephXAttr.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // Copyright (c) 2014-2015 by European Organization for Nuclear Research (CERN)
3 // Author: Sebastien Ponce <sebastien.ponce@cern.ch>
4 //------------------------------------------------------------------------------
5 // This file is part of the XRootD software suite.
6 //
7 // XRootD is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // XRootD is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with XRootD. If not, see <http://www.gnu.org/licenses/>.
19 //
20 // In applying this licence, CERN does not waive the privileges and immunities
21 // granted to it by virtue of its status as an Intergovernmental Organization
22 // or submit itself to any jurisdiction.
23 //------------------------------------------------------------------------------
24 
25 #ifndef __XRD_CEPH_XATTR_HH__
26 #define __XRD_CEPH_XATTR_HH__
27 
28 #include <XrdSys/XrdSysXAttr.hh>
29 
30 //------------------------------------------------------------------------------
50 //------------------------------------------------------------------------------
51 
52 class XrdCephXAttr : public XrdSysXAttr {
53 
54 public:
55 
56  //------------------------------------------------------------------------------
58  //------------------------------------------------------------------------------
59  XrdCephXAttr();
60 
61  //------------------------------------------------------------------------------
63  //------------------------------------------------------------------------------
64  virtual ~XrdCephXAttr();
65 
66  //------------------------------------------------------------------------------
76  //------------------------------------------------------------------------------
77  virtual int Del(const char *Aname, const char *Path, int fd=-1);
78 
79  //------------------------------------------------------------------------------
83  //------------------------------------------------------------------------------
84 
85  virtual void Free(AList *aPL);
86 
87  //------------------------------------------------------------------------------
104  //------------------------------------------------------------------------------
105 
106  virtual int Get(const char *Aname, void *Aval, int Avsz,
107  const char *Path, int fd=-1);
108 
109  //------------------------------------------------------------------------------
127  //------------------------------------------------------------------------------
128  virtual int List(AList **aPL, const char *Path, int fd=-1, int getSz=0);
129 
130  //------------------------------------------------------------------------------
146  //------------------------------------------------------------------------------
147  virtual int Set(const char *Aname, const void *Aval, int Avsz,
148  const char *Path, int fd=-1, int isNew=0);
149 
150 };
151 
152 #endif /* __XRD_CEPH_XATTR_HH__ */
XrdOucString Path
virtual int Set(const char *Aname, const void *Aval, int Avsz, const char *Path, int fd=-1, int isNew=0)
virtual int List(AList **aPL, const char *Path, int fd=-1, int getSz=0)
Definition: XrdCephXAttr.cc:87
virtual void Free(AList *aPL)
Definition: XrdCephXAttr.cc:69
virtual ~XrdCephXAttr()
Destructor.
Definition: XrdCephXAttr.cc:58
virtual int Del(const char *Aname, const char *Path, int fd=-1)
Definition: XrdCephXAttr.cc:60
virtual int Get(const char *Aname, void *Aval, int Avsz, const char *Path, int fd=-1)
Definition: XrdCephXAttr.cc:73
XrdCephXAttr()
Constructor.
Definition: XrdCephXAttr.cc:56