All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
GeopsyCore::GuralpSignal Class Reference

#include <GuralpSignal.h>

List of all members.

Public Member Functions

void addRecord (quint64 offset, const GuralpCompressedBlock &b)
Signal::Components component () const
 GuralpSignal (quint64 offset, const GuralpCompressedBlock &b)
QString name () const
int nSamples () const
const GuralpRecordsrecords () const
double samplingFrequency () const
QDateTime startTime () const
SparseTimeRange timeRange (double t0) const

Detailed Description

De-interlacing tool for reading GCF files or streams.


Constructor & Destructor Documentation

Description of constructor still missing

References addRecord(), and TRACE.

  {
    TRACE;
    _firstBlock=b;
    _nSamples=0;
    addRecord(offset, b);
  }

Member Function Documentation

void GeopsyCore::GuralpSignal::addRecord ( quint64  offset,
const GuralpCompressedBlock b 
)

Adds one record. Nota that first block must not be added this way. It is automatically add by the contructor.

References GeopsyCore::SparseTimeRange::add(), GeopsyCore::GuralpRecords::add(), GeopsyCore::GuralpCompressedBlock::nSamples(), GeopsyCore::GuralpCompressedBlock::startTime(), and GeopsyCore::GuralpCompressedBlock::timeRange().

Referenced by GuralpSignal().

  {
    _nSamples+=b.nSamples();
    _records.add(offset);
    _timeRange.add(b.timeRange(_firstBlock.startTime()), false);
  }
{return _firstBlock.component();}
QString GeopsyCore::GuralpSignal::name ( ) const [inline]
{return _firstBlock.name();}
int GeopsyCore::GuralpSignal::nSamples ( ) const [inline]
{return _nSamples;}
{return _records;}
{return _firstBlock.samplingFrequency();}
QDateTime GeopsyCore::GuralpSignal::startTime ( ) const [inline]
{return _firstBlock.startTime();}

Returns the range of available signal shitfed by t0.

References GeopsyCore::SparseTimeRange::shift(), and TRACE.

  {
    TRACE;
    SparseTimeRange r=_timeRange;
    r.shift(t0);
    return r;
  }

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines