UNIVERS
15.3
UNIVERS base processing software API
|
#include <seismic.hpp>
Public Member Functions | |
Seismic (const std::string &project_str) | |
virtual | ~Seismic () |
const std::string & | getProject () const |
virtual ErrCode | getVolumeHeader (VolumeHeader &vol_header) const =0 |
virtual size_t | tracesNum (ErrCode *prc=NULL) const =0 |
virtual DbIndex | rawDbIndex (size_t id, ErrCode *prc=NULL) const =0 |
virtual const TrHeader & | rawTrHeader (const DbIndex &id, ErrCode *prc=NULL) const =0 |
virtual const TrHeader & | trHeader (size_t id, ErrCode *prc=NULL) const |
virtual const TrBody & | rawTrBody (const DbIndex &id, ErrCode *prc=NULL) const =0 |
virtual const TrBody & | trBody (size_t id, ErrCode *prc=NULL) const |
virtual ErrCode | setVolumeHeader (const VolumeHeader &vol_header)=0 |
virtual ErrCode | rawSetTrHeader (const DbIndex &id, const TrHeader &hdr)=0 |
virtual ErrCode | setTrHeader (size_t id, const TrHeader &hdr) |
virtual ErrCode | rawSetTrBody (const DbIndex &id, const TrBody &body)=0 |
virtual ErrCode | setTrBody (size_t id, const TrBody &body) |
virtual ErrCode | appendTr (const TrHeader &header, const TrBody &body)=0 |
virtual ErrCode | eraseTr (size_t id)=0 |
virtual ErrCode | select (const TrSelector &selector=TrSelector())=0 |
virtual const TrSelector & | getSelector () const =0 |
const TrHeader & | getDefaultTrHeader () const |
Public Member Functions inherited from hds::db::Object | |
Object () | |
virtual | ~Object () |
virtual ErrCode | open (const std::string &name, OpenMode mode)=0 |
virtual OpenMode | openMode () const |
virtual ErrCode | close ()=0 |
virtual ErrCode | flush ()=0 |
virtual std::string | name (ErrCode *rc=NULL) const =0 |
virtual ErrCode | setName (const std::string &name_str)=0 |
virtual ErrCode | remove (const std::string &name)=0 |
virtual ErrCode | getList (Names &list) const =0 |
virtual bool | exists (const std::string &name, ErrCode *rc=NULL) const |
virtual size_t | dataSize (const std::string &name, ErrCode *rc=NULL) const =0 |
virtual time_t | creationTime (const std::string &name, ErrCode *rc=NULL) const =0 |
virtual time_t | modificationTime (const std::string &name, ErrCode *rc=NULL) const =0 |
Protected Attributes | |
std::string | m_project_str |
Protected Attributes inherited from hds::db::Object | |
OpenMode | m_cur_open_mode |
Additional Inherited Members | |
Public Types inherited from hds::db::Object | |
typedef std::vector< std::string > | Names |
Abstract interface for seismic data access.
hds::db::Seismic::Seismic | ( | const std::string & | project_str | ) |
Default constructor with project name provided.
|
virtual |
Destructor.
|
pure virtual |
Append new trace. Return EC_NO_ERROR if all correct, otherwise
return correspondent error code.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Erase tr with provided id. Return EC_NO_ERROR if all correct, otherwise
return correspondent error code.
Implemented in hds::db::SeismicQSql.
const TrHeader& hds::db::Seismic::getDefaultTrHeader | ( | ) | const |
Get default trace header object for this wavefield.
const std::string& hds::db::Seismic::getProject | ( | ) | const |
Get current project of the seismic.
|
pure virtual |
Access to current selector object.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Get volume header of the seismic. Return EC_NO_ERROR if all correct,
otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql.
Get raw database index for provided index of trace.
rc will contain error code if provided. rc = EC_NO_ERROR if all correct.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Set body of the trace with provided raw database index.
Return error code.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Set header of the trace with provided raw database index.
Return error code.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Access to the body of the trace for reading with raw database index provided.
rc will contain error code if provided.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Access to the header of the trace for reading with raw database index provided.
rc will contain error code if provided.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Makes a selection with provided selector. Seismic must be opened.
selector | Selection rules object. Empty selector by default provides raw order of traces. |
Implemented in hds::db::SeismicQSql.
Set body of the trace with provided id.
Return error code.
Set header of the trace with provided id.
Return error code.
|
pure virtual |
Set new volume header. Return EC_NO_ERROR if all correct,
otherwise return correspondent error code.
Implemented in hds::db::SeismicQSql.
|
pure virtual |
Number of traces of current set of traces selection.
rc will contain error code if provided.
Implemented in hds::db::SeismicQSql.
Access to the body of the trace with provided id for reading.
rc will contain error code if provided.
|
virtual |
Access to the header of the trace with provided id for reading.
rc will contain error code if provided.
|
protected |
< Current name of the project.