Storage for Guralp block offsets inside one file. More...
#include <GuralpRecords.h>
Public Member Functions | |
void | add (quint64 pos) |
virtual MetaData * | clone () const |
int | count () const |
virtual const MetaData * | defaultValue () const |
virtual bool | fromString (const QString &, QString string) |
GuralpRecords () | |
GuralpRecords (const GuralpRecords &o) | |
virtual int | id () const |
quint64 | pos (int index) const |
virtual void | setId (int id) const |
virtual QString | toString (const QString &) const |
virtual const QString & | xml_tagName () const |
Static Public Member Functions | |
static int | staticId () |
Static Public Attributes | |
static const QString | xmlGuralpRecordsTag = "GuralpRecords" |
Storage for Guralp block offsets inside one file.
Storage for Guralp blocks inside one file
GeopsyCore::GuralpRecords::GuralpRecords | ( | ) | [inline] |
{}
GeopsyCore::GuralpRecords::GuralpRecords | ( | const GuralpRecords & | o | ) | [inline] |
: MetaData(o), _records(o._records) {}
void GeopsyCore::GuralpRecords::add | ( | quint64 | pos | ) | [inline] |
Referenced by GeopsyCore::GuralpSignal::addRecord().
{_records.append(pos);}
virtual MetaData* GeopsyCore::GuralpRecords::clone | ( | ) | const [inline, virtual] |
Implements GeopsyCore::MetaData.
{return new GuralpRecords(*this);}
int GeopsyCore::GuralpRecords::count | ( | ) | const [inline] |
{return _records.count();}
virtual const MetaData* GeopsyCore::GuralpRecords::defaultValue | ( | ) | const [inline, virtual] |
Implements GeopsyCore::MetaData.
{return &_defaultValue;}
bool GeopsyCore::GuralpRecords::fromString | ( | const QString & | , |
QString | string | ||
) | [virtual] |
Reimplemented from GeopsyCore::MetaData.
References QGpCoreTools::StringSection::isValid(), QGpCoreTools::StringSection::nextField(), QGpCoreTools::StringSection::toInt(), and TRACE.
{ TRACE; _records.clear(); StringSection valSection(string); StringSection field; const QChar * ptr=0; while(true) { field=valSection.nextField(ptr, "," ); if(!field.isValid()) return false; _records.append(field.toInt()); } return true; }
virtual int GeopsyCore::GuralpRecords::id | ( | ) | const [inline, virtual] |
Implements GeopsyCore::MetaData.
{return _id;}
quint64 GeopsyCore::GuralpRecords::pos | ( | int | index | ) | const [inline] |
{return _records[index];}
virtual void GeopsyCore::GuralpRecords::setId | ( | int | id | ) | const [inline, virtual] |
Implements GeopsyCore::MetaData.
{_id=id;}
static int GeopsyCore::GuralpRecords::staticId | ( | ) | [inline, static] |
Referenced by GeopsyCore::Signal::guralpRecords(), and GeopsyCore::Signal::setGuralpRecords().
{return _id;}
QString GeopsyCore::GuralpRecords::toString | ( | const QString & | ) | const [virtual] |
virtual const QString& GeopsyCore::GuralpRecords::xml_tagName | ( | ) | const [inline, virtual] |
Implements QGpCoreTools::XMLClass.
{return xmlGuralpRecordsTag;}
const QString GeopsyCore::GuralpRecords::xmlGuralpRecordsTag = "GuralpRecords" [static] |