UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
hds::db::Seismic Class Referenceabstract

#include <seismic.hpp>

Inheritance diagram for hds::db::Seismic:
hds::db::Object hds::db::SeismicQSql

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 TrHeaderrawTrHeader (const DbIndex &id, ErrCode *prc=NULL) const =0
 
virtual const TrHeadertrHeader (size_t id, ErrCode *prc=NULL) const
 
virtual const TrBodyrawTrBody (const DbIndex &id, ErrCode *prc=NULL) const =0
 
virtual const TrBodytrBody (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 TrSelectorgetSelector () const =0
 
const TrHeadergetDefaultTrHeader () 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
 

Detailed Description

Abstract interface for seismic data access.

Constructor & Destructor Documentation

hds::db::Seismic::Seismic ( const std::string &  project_str)

Default constructor with project name provided.

virtual hds::db::Seismic::~Seismic ( )
virtual

Destructor.

Member Function Documentation

virtual ErrCode hds::db::Seismic::appendTr ( const TrHeader header,
const TrBody body 
)
pure virtual
Append new trace. Return EC_NO_ERROR if all correct, otherwise 

return correspondent error code.

Implemented in hds::db::SeismicQSql.

virtual ErrCode hds::db::Seismic::eraseTr ( size_t  id)
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.

virtual const TrSelector& hds::db::Seismic::getSelector ( ) const
pure virtual

Access to current selector object.

Implemented in hds::db::SeismicQSql.

virtual ErrCode hds::db::Seismic::getVolumeHeader ( VolumeHeader vol_header) const
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.

virtual DbIndex hds::db::Seismic::rawDbIndex ( size_t  id,
ErrCode prc = NULL 
) const
pure virtual
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.

virtual ErrCode hds::db::Seismic::rawSetTrBody ( const DbIndex id,
const TrBody body 
)
pure virtual
Set body of the trace with provided raw database index. 

Return error code.

Implemented in hds::db::SeismicQSql.

virtual ErrCode hds::db::Seismic::rawSetTrHeader ( const DbIndex id,
const TrHeader hdr 
)
pure virtual
Set header of the trace with provided raw database index. 

Return error code.

Implemented in hds::db::SeismicQSql.

virtual const TrBody& hds::db::Seismic::rawTrBody ( const DbIndex id,
ErrCode prc = NULL 
) const
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.

virtual const TrHeader& hds::db::Seismic::rawTrHeader ( const DbIndex id,
ErrCode prc = NULL 
) const
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.

virtual ErrCode hds::db::Seismic::select ( const TrSelector selector = TrSelector())
pure virtual
Makes a selection with provided selector. Seismic must be opened.
Parameters
selectorSelection rules object. Empty selector by default provides raw order of traces.
Returns
EC_NO_ERROR if all correct, otherwise return correspondent error code.

Implemented in hds::db::SeismicQSql.

virtual ErrCode hds::db::Seismic::setTrBody ( size_t  id,
const TrBody body 
)
virtual
Set body of the trace with provided id. 

Return error code.

virtual ErrCode hds::db::Seismic::setTrHeader ( size_t  id,
const TrHeader hdr 
)
virtual
Set header of the trace with provided id. 

Return error code.

virtual ErrCode hds::db::Seismic::setVolumeHeader ( const VolumeHeader vol_header)
pure virtual
Set new volume header. Return EC_NO_ERROR if all correct, 

otherwise return correspondent error code.

Implemented in hds::db::SeismicQSql.

virtual size_t hds::db::Seismic::tracesNum ( ErrCode prc = NULL) const
pure virtual
Number of traces of current set of traces selection. 

rc will contain error code if provided.

Implemented in hds::db::SeismicQSql.

virtual const TrBody& hds::db::Seismic::trBody ( size_t  id,
ErrCode prc = NULL 
) const
virtual
Access to the body of the trace with provided id for reading. 

rc will contain error code if provided.

virtual const TrHeader& hds::db::Seismic::trHeader ( size_t  id,
ErrCode prc = NULL 
) const
virtual
Access to the header of the trace with provided id for reading.

rc will contain error code if provided.

Member Data Documentation

std::string hds::db::Seismic::m_project_str
protected

< Current name of the project.


The documentation for this class was generated from the following file: