OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
BufferDataPack Class Reference

Simple DataPack based on an unstructured char array buffer. More...

Inheritance diagram for BufferDataPack:
[legend]

Public Member Functions

 BufferDataPack (char *b=0, int64_t s=0, const char *catgry="Buffer")
 
 ~BufferDataPack ()
 
char * buf ()
 
char const * buf () const
 
int64_t size () const
 
void setBuf (char *b, int64_t s)
 
virtual float nrKBytes () const
 
- Public Member Functions inherited from DataPack
 DataPack (const char *categry)
 
 DataPack (const DataPack &dp)
 
virtual ~DataPack ()
 
ID id () const
 
FullID fullID (int mgrid) const
 
virtual const char * category () const
 
virtual void dumpInfo (IOPar &) const
 
virtual bool isOK () const
 
Threads::LockupdateLock () const
 
void release ()
 
DataPackobtain ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Attributes

char * buf_
 
int64_t sz_
 
- Protected Attributes inherited from DataPack
const ID id_
 
const BufferString category_
 
int nrusers_
 
Threads::Lock nruserslock_
 
Threads::Lock updatelock_
 
const DataPackMgrmanager_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Additional Inherited Members

- Public Types inherited from DataPack
typedef int ID
 
typedef MultiID FullID
 
- Static Public Member Functions inherited from DataPack
static ID getID (const FullID &fid)
 
static const char * sKeyCategory ()
 
static ID cNoID ()
 
- Protected Member Functions inherited from DataPack
void setManager (const DataPackMgr *)
 
void setCategory (const char *c)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 
- Static Protected Member Functions inherited from DataPack
static ID getNewID ()
 ensures a global data pack ID More...
 
static float sKb2MbFac ()
 1 / 1024 More...
 

Detailed Description

Simple DataPack based on an unstructured char array buffer.

Constructor & Destructor Documentation

BufferDataPack::BufferDataPack ( char *  b = 0,
int64_t  s = 0,
const char *  catgry = "Buffer" 
)
inline
BufferDataPack::~BufferDataPack ( )
inline

Member Function Documentation

char* BufferDataPack::buf ( )
inline
char const* BufferDataPack::buf ( ) const
inline
virtual float BufferDataPack::nrKBytes ( ) const
inlinevirtual

Implements DataPack.

void BufferDataPack::setBuf ( char *  b,
int64_t  s 
)
inline
int64_t BufferDataPack::size ( ) const
inline

Member Data Documentation

char* BufferDataPack::buf_
protected
int64_t BufferDataPack::sz_
protected

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