OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
EM::dgbSurfDataWriter Class Reference

Writes auxdata to file. More...

Inheritance diagram for EM::dgbSurfDataWriter:
[legend]

Public Member Functions

 dgbSurfDataWriter (const EM::Horizon3D &surf, int dataidx, const TrcKeySampling *, bool binary, const char *filename)
 
 ~dgbSurfDataWriter ()
 
virtual int nextStep ()
 
virtual od_int64 nrDone () const
 
virtual od_int64 totalNr () const
 
virtual uiString uiMessage () const
 will be message() again in 7.x More...
 
virtual uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
- Public Member Functions inherited from Executor
 Executor (const char *nm)
 
virtual ~Executor ()
 
virtual int doStep ()
 
bool go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
bool go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
virtual bool execute ()
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=0)
 
virtual ~SequentialTask ()
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
bool execute ()
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
bool workControlEnabled () const
 
virtual void controlWork (Control)
 
virtual Control getState () const
 
- 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...
 

Static Public Member Functions

static const char * sKeyAttrName ()
 
static const char * sKeyIntDataChar ()
 
static const char * sKeyInt64DataChar ()
 
static const char * sKeyFloatDataChar ()
 
static const char * sKeyFileType ()
 
static const char * sKeyShift ()
 
static BufferString createHovName (const char *base, int idx)
 
static bool writeDummyHeader (const char *fnm, const char *attrnm)
 
- Static Public Member Functions inherited from SequentialTask
static int ErrorOccurred ()
 
static int Finished ()
 
static int MoreToDo ()
 
static int WarningAvailable ()
 
- Static Public Member Functions inherited from Task
static uiString stdNrDoneText ()
 
static uiString uiStdNrDoneText ()
 

Protected Member Functions

bool writeInt (int)
 
bool writeInt64 (od_int64)
 
bool writeFloat (float)
 
- Protected Member Functions inherited from Executor
virtual bool goImpl (od_ostream *, bool, bool, int)
 
- Protected Member Functions inherited from Task
 Task (const char *nm=0)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

int dataidx_
 
const EM::Horizon3Dsurf_
 
const TrcKeySamplingsel_
 
TypeSet< EM::SubIDsubids_
 
TypeSet< float > values_
 
int sectionindex_
 
int chunksize_
 
int nrdone_
 
int totalnr_
 
uiString errmsg_
 
od_ostreamstream_
 
bool binary_
 
BufferString filename_
 
- Protected Attributes inherited from SequentialTask
ProgressMeterprogressmeter_
 
int lastupdate_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Private Member Functions

 mODTextTranslationClass (dgbSurfDataWriter)
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run, Pause, Stop }
 
- Public Attributes inherited from Executor
Notifier< Executorprestep
 
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 

Detailed Description

Writes auxdata to file.

Constructor & Destructor Documentation

EM::dgbSurfDataWriter::dgbSurfDataWriter ( const EM::Horizon3D surf,
int  dataidx,
const TrcKeySampling ,
bool  binary,
const char *  filename 
)
Parameters
surfThe surface with the values
dataidxThe index of the data to be written
selA selection of which data that should be written. Can be null, i.e. no selection
binarySpecify whether the data should be written in binary format
EM::dgbSurfDataWriter::~dgbSurfDataWriter ( )

Member Function Documentation

static BufferString EM::dgbSurfDataWriter::createHovName ( const char *  base,
int  idx 
)
static
EM::dgbSurfDataWriter::mODTextTranslationClass ( dgbSurfDataWriter  )
private
virtual int EM::dgbSurfDataWriter::nextStep ( )
virtual
Return values
MoreToDo()Not finished. Call me again.
Finished()Nothing more to do.
ErrorOccurred()Something went wrong.
Note
if function returns a value greater than cMoreToDo(), it should be interpreted as cMoreToDo().

Implements SequentialTask.

virtual od_int64 EM::dgbSurfDataWriter::nrDone ( ) const
virtual
Note
nrDone is only used for displaying progress and will be compared to totalNr to show user how large part of the task that is finished.

Reimplemented from Task.

static const char* EM::dgbSurfDataWriter::sKeyAttrName ( )
static
static const char* EM::dgbSurfDataWriter::sKeyFileType ( )
static
static const char* EM::dgbSurfDataWriter::sKeyFloatDataChar ( )
static
static const char* EM::dgbSurfDataWriter::sKeyInt64DataChar ( )
static
static const char* EM::dgbSurfDataWriter::sKeyIntDataChar ( )
static
static const char* EM::dgbSurfDataWriter::sKeyShift ( )
static
virtual od_int64 EM::dgbSurfDataWriter::totalNr ( ) const
virtual

Reimplemented from Task.

virtual uiString EM::dgbSurfDataWriter::uiMessage ( ) const
virtual

will be message() again in 7.x

Note
totalNr is only used for displaying progress.

Reimplemented from Task.

virtual uiString EM::dgbSurfDataWriter::uiNrDoneText ( ) const
virtual

will be nrDoneText() in 7.x

Reimplemented from Task.

static bool EM::dgbSurfDataWriter::writeDummyHeader ( const char *  fnm,
const char *  attrnm 
)
static
bool EM::dgbSurfDataWriter::writeFloat ( float  )
protected
bool EM::dgbSurfDataWriter::writeInt ( int  )
protected
bool EM::dgbSurfDataWriter::writeInt64 ( od_int64  )
protected

Member Data Documentation

bool EM::dgbSurfDataWriter::binary_
protected
int EM::dgbSurfDataWriter::chunksize_
protected
int EM::dgbSurfDataWriter::dataidx_
protected
uiString EM::dgbSurfDataWriter::errmsg_
protected
BufferString EM::dgbSurfDataWriter::filename_
protected
int EM::dgbSurfDataWriter::nrdone_
protected
int EM::dgbSurfDataWriter::sectionindex_
protected
const TrcKeySampling* EM::dgbSurfDataWriter::sel_
protected
od_ostream* EM::dgbSurfDataWriter::stream_
protected
TypeSet<EM::SubID> EM::dgbSurfDataWriter::subids_
protected
const EM::Horizon3D& EM::dgbSurfDataWriter::surf_
protected
int EM::dgbSurfDataWriter::totalnr_
protected
TypeSet<float> EM::dgbSurfDataWriter::values_
protected

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