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

Brief description of class still missing. More...

#include <SEGYHeader.h>

List of all members.

Public Member Functions

bool read (QDataStream &s)
 SEGYHeader ()
bool write (QDataStream &s)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References field, and TRACE.

  {
    TRACE;
    ASSERT(sizeof(SEGYHeader)==3600);
    memset(this, 0, 3600);
    field.dataSampleFormat=5; // IEEE floating point
    // Geopsy currently does not read other header fields.
  }

Member Function Documentation

bool GeopsyCore::SEGYHeader::read ( QDataStream &  s)

References raw, and TRACE.

  {
    TRACE;
    s.readRawData(raw.raw0, 3200);
    for(int i=0;i<3;i++) s >> raw.raw1[i];
    for(int i=0;i<24;i++) s >> raw.raw2[i];
    s.skipRawData(240);
    for(int i=0;i<3;i++) s >> raw.raw4[i];
    s.skipRawData(94);
    return s.status()==QDataStream::Ok;
  }
bool GeopsyCore::SEGYHeader::write ( QDataStream &  s)

References raw, and TRACE.

  {
    TRACE;
    if(s.writeRawData(raw.raw0, 3200)!=3200) return false;
    for(int i=0;i<3;i++) s << raw.raw1[i];
    for(int i=0;i<24;i++) s << raw.raw2[i];
    if(s.writeRawData(raw.raw3, 240)!=240) return false;
    for(int i=0;i<3;i++) s << raw.raw4[i];
    if(s.writeRawData(raw.raw5, 94)!=94) return false;
    return true;
  }

Member Data Documentation

Referenced by SEGYHeader().

Referenced by read(), and write().


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