OpendTect-6_4  6.4
databuf.h
Go to the documentation of this file.
1 #ifndef databuf_h
2 #define databuf_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H.Bril
9  Date: 1-9-95
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 #include "generalmod.h"
16 #include "rawarray.h"
17 #include "bufstring.h"
18 
19 
23 {
24 public:
25  DataBuffer(int n,int byts=4,bool setnull=false);
26  ~DataBuffer();
27  DataBuffer( const DataBuffer& b )
28  : RawDataArray(0) { *this = b; }
30 
31  inline bool isOk() const { return data_ ? true : false; }
32 
33  void reSize(int,bool copydata=true);
34  void reByte(int,bool copydata=true);
35  void zero();
36  BufferString getString() const;
37 
38 };
39 
40 
41 #endif
#define mExpClass(module)
Definition: commondefs.h:160
bool isOk() const
Definition: databuf.h:31
DataBuffer(const DataBuffer &b)
Definition: databuf.h:27
Raw data array with memory management.
Definition: databuf.h:22
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Raw binary data access.
Definition: rawarray.h:21
ManagedObjectSet< BufferString > & operator=(const ObjectSet< BufferString > &)

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019