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

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