XRootD
XrdOssCsiTagstore.hh
Go to the documentation of this file.
1
#ifndef _XRDOSSCSITAGSTORE_H
2
#define _XRDOSSCSITAGSTORE_H
3
/******************************************************************************/
4
/* */
5
/* X r d O s s C s i T a g s t o r e . h h */
6
/* */
7
/* (C) Copyright 2020 CERN. */
8
/* */
9
/* This file is part of the XRootD software suite. */
10
/* */
11
/* XRootD is free software: you can redistribute it and/or modify it under */
12
/* the terms of the GNU Lesser General Public License as published by the */
13
/* Free Software Foundation, either version 3 of the License, or (at your */
14
/* option) any later version. */
15
/* */
16
/* In applying this licence, CERN does not waive the privileges and */
17
/* immunities granted to it by virtue of its status as an Intergovernmental */
18
/* Organization or submit itself to any jurisdiction. */
19
/* */
20
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
21
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
22
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
23
/* License for more details. */
24
/* */
25
/* You should have received a copy of the GNU Lesser General Public License */
26
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
27
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
28
/* */
29
/* The copyright holder's institutional names and contributor's names may not */
30
/* be used to endorse or promote products derived from this software without */
31
/* specific prior written permission of the institution or contributor. */
32
/******************************************************************************/
33
34
#include "
XrdOss/XrdOss.hh
"
35
36
class
XrdOssCsiTagstore
37
{
38
public
:
39
40
virtual
~XrdOssCsiTagstore
() { }
41
42
virtual
int
Open
(
const
char
*, off_t,
int
,
XrdOucEnv
&)=0;
43
virtual
int
Close
()=0;
44
45
virtual
void
Flush
()=0;
46
virtual
int
Fsync
()=0;
47
48
virtual
ssize_t
WriteTags
(
const
uint32_t *, off_t,
size_t
)=0;
49
virtual
ssize_t
ReadTags
(uint32_t *, off_t,
size_t
)=0;
50
51
virtual
off_t
GetTrackedTagSize
()
const
=0;
52
virtual
off_t
GetTrackedDataSize
()
const
=0;
53
virtual
bool
IsVerified
()
const
=0;
54
55
virtual
int
SetTrackedSize
(off_t)=0;
56
virtual
int
SetUnverified
()=0;
57
virtual
int
ResetSizes
(off_t)=0;
58
virtual
int
Truncate
(off_t,
bool
)=0;
59
60
// if this flag is set in the header, it indicates the tags
61
// are for verified checksums.
62
// if it is unset it means the tags are unverified
63
static
const
uint32_t
csVer
= 0x00000001;
64
};
65
66
#endif
XrdOss.hh
XrdOssCsiTagstore
Definition:
XrdOssCsiTagstore.hh:37
XrdOssCsiTagstore::SetTrackedSize
virtual int SetTrackedSize(off_t)=0
XrdOssCsiTagstore::Flush
virtual void Flush()=0
XrdOssCsiTagstore::Truncate
virtual int Truncate(off_t, bool)=0
XrdOssCsiTagstore::Open
virtual int Open(const char *, off_t, int, XrdOucEnv &)=0
XrdOssCsiTagstore::GetTrackedDataSize
virtual off_t GetTrackedDataSize() const =0
XrdOssCsiTagstore::~XrdOssCsiTagstore
virtual ~XrdOssCsiTagstore()
Definition:
XrdOssCsiTagstore.hh:40
XrdOssCsiTagstore::Fsync
virtual int Fsync()=0
XrdOssCsiTagstore::GetTrackedTagSize
virtual off_t GetTrackedTagSize() const =0
XrdOssCsiTagstore::csVer
static const uint32_t csVer
Definition:
XrdOssCsiTagstore.hh:63
XrdOssCsiTagstore::ResetSizes
virtual int ResetSizes(off_t)=0
XrdOssCsiTagstore::IsVerified
virtual bool IsVerified() const =0
XrdOssCsiTagstore::WriteTags
virtual ssize_t WriteTags(const uint32_t *, off_t, size_t)=0
XrdOssCsiTagstore::ReadTags
virtual ssize_t ReadTags(uint32_t *, off_t, size_t)=0
XrdOssCsiTagstore::Close
virtual int Close()=0
XrdOssCsiTagstore::SetUnverified
virtual int SetUnverified()=0
XrdOucEnv
Definition:
XrdOucEnv.hh:42
XrdOssCsi
XrdOssCsiTagstore.hh
Generated by
1.9.1