DP3
BlobIBuffer.h
Go to the documentation of this file.
1 // BlobIBuffer.h: Abstract base class for input buffer for a blob
2 //
3 // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 
6 #include <cstdint>
7 
8 #ifndef LOFAR_BLOB_BLOBIBUFFER_H
9 #define LOFAR_BLOB_BLOBIBUFFER_H
10 
11 namespace dp3 {
12 namespace blob {
13 
16 
18 
35 
36 class BlobIBuffer {
37  public:
40 
42  virtual ~BlobIBuffer() {}
43 
45  virtual uint64_t get(void* buffer, uint64_t nbytes) = 0;
46 
49  virtual int64_t tellPos() const = 0;
50 
53  virtual int64_t setPos(int64_t pos) = 0;
54 };
55 
57 
58 } // namespace blob
59 } // namespace dp3
60 
61 #endif
Abstract base class for input buffer for a blob.
Definition: BlobIBuffer.h:36
virtual uint64_t get(void *buffer, uint64_t nbytes)=0
Get the requested nr of bytes.
virtual ~BlobIBuffer()
Destructor.
Definition: BlobIBuffer.h:42
virtual int64_t setPos(int64_t pos)=0
virtual int64_t tellPos() const =0
BlobIBuffer()
Constructor.
Definition: BlobIBuffer.h:39
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53