DP3
BlobOBuffer.h
Go to the documentation of this file.
1 // BlobOBuffer.h: Abstract base class for output 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 #ifndef LOFAR_BLOB_BLOBOBUFFER_H
7 #define LOFAR_BLOB_BLOBOBUFFER_H
8 
9 #include <cinttypes>
10 
11 namespace dp3 {
12 namespace blob {
13 
16 
18 
31 
32 class BlobOBuffer {
33  public:
35 
36  virtual ~BlobOBuffer() {}
37 
39  virtual uint64_t put(const void* buffer, uint64_t nbytes) = 0;
40 
43  virtual int64_t tellPos() const = 0;
44 
47  virtual int64_t setPos(int64_t pos) = 0;
48 };
49 
51 
52 } // namespace blob
53 } // namespace dp3
54 
55 #endif
Abstract base class for output buffer for a blob.
Definition: BlobOBuffer.h:32
virtual int64_t tellPos() const =0
virtual ~BlobOBuffer()
Definition: BlobOBuffer.h:36
BlobOBuffer()
Definition: BlobOBuffer.h:34
virtual int64_t setPos(int64_t pos)=0
virtual uint64_t put(const void *buffer, uint64_t nbytes)=0
Put the requested nr of bytes.
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53