GPLIB++
Public Member Functions | List of all members
gplib::SurfaceWaveData Class Reference

A class to read, write and store fundamental mode surface wave dispersion data. More...

#include <SurfaceWaveData.h>

Inheritance diagram for gplib::SurfaceWaveData:
Inheritance graph
[legend]

Public Member Functions

const trealdata & GetPhaseVelocities () const
 Read-only access to the vector of phase velocities. More...
 
const trealdata & GetPeriods () const
 Read-only access to the vector of periods for the phase velocities. More...
 
trealdata & SetPhaseVelocities ()
 Read-write access to phase velocities, the format might be changed in the future. More...
 
trealdata & SetPeriods ()
 Read-write access to periods, the format might be changed in the future. More...
 
void ReadFile (const std::string &filename)
 Read data from file, depending on the extension. More...
 
virtual void ReadAscii (const std::string &filename)
 Read a file in general ascii format, i.e lines with period velocity each. More...
 
void ReadSurf96 (const std::string &filename)
 read data as produced by the computer programs in seismology codes ascii More...
 
virtual void WriteAscii (const std::string &filename) const
 Write the data in simple ascii format. More...
 
SurfaceWaveDataoperator= (const SurfaceWaveData &source)
 
 SurfaceWaveData (const SurfaceWaveData &Old)
 
 SurfaceWaveData ()
 
virtual ~SurfaceWaveData ()
 

Detailed Description

A class to read, write and store fundamental mode surface wave dispersion data.

Definition at line 11 of file SurfaceWaveData.h.

Constructor & Destructor Documentation

gplib::SurfaceWaveData::SurfaceWaveData ( const SurfaceWaveData Old)

Definition at line 19 of file SurfaceWaveData.cpp.

gplib::SurfaceWaveData::SurfaceWaveData ( )

Definition at line 11 of file SurfaceWaveData.cpp.

gplib::SurfaceWaveData::~SurfaceWaveData ( )
virtual

Definition at line 15 of file SurfaceWaveData.cpp.

Member Function Documentation

const trealdata& gplib::SurfaceWaveData::GetPeriods ( ) const
inline

Read-only access to the vector of periods for the phase velocities.

Definition at line 23 of file SurfaceWaveData.h.

Referenced by gplib::AbsVelRecObjective::PostParallel(), gplib::SurfaceWaveObjective::PreParallel(), gplib::ParkSurfaceWaveData::ReadAscii(), and gplib::ParkSurfaceWaveData::WriteAscii().

const trealdata& gplib::SurfaceWaveData::GetPhaseVelocities ( ) const
inline
SurfaceWaveData & gplib::SurfaceWaveData::operator= ( const SurfaceWaveData source)

Definition at line 25 of file SurfaceWaveData.cpp.

void gplib::SurfaceWaveData::ReadAscii ( const std::string &  filename)
virtual

Read a file in general ascii format, i.e lines with period velocity each.

Reimplemented in gplib::ParkSurfaceWaveData.

Definition at line 73 of file SurfaceWaveData.cpp.

Referenced by main(), ReadFile(), and SetupRecObjective().

void gplib::SurfaceWaveData::ReadFile ( const std::string &  filename)

Read data from file, depending on the extension.

Read data from file, depending on the extension it will either call ReadAscii (for ending .asc), or ReadSurf96 (for any other ending).

Definition at line 38 of file SurfaceWaveData.cpp.

References ReadAscii(), and ReadSurf96().

Referenced by main().

void gplib::SurfaceWaveData::ReadSurf96 ( const std::string &  filename)

read data as produced by the computer programs in seismology codes ascii

Definition at line 50 of file SurfaceWaveData.cpp.

Referenced by ReadFile(), and gplib::SurfaceWaveSynthetic::SafeParallel().

trealdata& gplib::SurfaceWaveData::SetPeriods ( )
inline

Read-write access to periods, the format might be changed in the future.

Definition at line 33 of file SurfaceWaveData.h.

Referenced by gplib::AbsVelRecObjective::PostParallel(), and gplib::ParkSurfaceWaveData::ReadAscii().

trealdata& gplib::SurfaceWaveData::SetPhaseVelocities ( )
inline

Read-write access to phase velocities, the format might be changed in the future.

Definition at line 28 of file SurfaceWaveData.h.

Referenced by main(), gplib::AbsVelRecObjective::PostParallel(), and gplib::ParkSurfaceWaveData::ReadAscii().

void gplib::SurfaceWaveData::WriteAscii ( const std::string &  filename) const
virtual

Write the data in simple ascii format.

Reimplemented in gplib::ParkSurfaceWaveData.

Definition at line 93 of file SurfaceWaveData.cpp.

Referenced by main(), gplib::AbsVelRecObjective::WriteData(), and gplib::SurfaceWaveObjective::WriteData().


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