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

MTStationList holds a number of MTSites, usually associated with a single project, line, etc. More...

#include <MTStationList.h>

Public Member Functions

tStationListGetList ()
 Access to the complete vector of Stations. More...
 
void GetData (const std::string filename)
 Read a list of filenames and the associated data in those files to fill the list. More...
 
void WriteList (const std::string filename="station.list")
 Write the names of the sites in the current list to a file. More...
 
void WriteAllData ()
 Write the data of each station to an individual file. More...
 
const std::vector< tindexvector > & GetComFreqIndices ()
 Get a vector that for each site contains the indices to the common frequencies. More...
 
const trealdata & GetCommonFrequencies ()
 Get a vector with frequencies that are common to all sites. More...
 
MTStationat (int loc)
 Get a reference to a site at a given index. More...
 
 MTStationList (double freqtol=0.05)
 
virtual ~MTStationList ()
 

Detailed Description

MTStationList holds a number of MTSites, usually associated with a single project, line, etc.

Definition at line 16 of file MTStationList.h.

Constructor & Destructor Documentation

gplib::MTStationList::MTStationList ( double  freqtol = 0.05)

Definition at line 16 of file MTStationList.cpp.

gplib::MTStationList::~MTStationList ( )
virtual

Definition at line 21 of file MTStationList.cpp.

Member Function Documentation

MTStation & gplib::MTStationList::at ( int  loc)

Get a reference to a site at a given index.

Definition at line 67 of file MTStationList.cpp.

Referenced by main(), and PrintComponent().

const std::vector<tindexvector>& gplib::MTStationList::GetComFreqIndices ( )
inline

Get a vector that for each site contains the indices to the common frequencies.

Definition at line 42 of file MTStationList.h.

Referenced by main(), and PrintComponent().

const trealdata& gplib::MTStationList::GetCommonFrequencies ( )
inline

Get a vector with frequencies that are common to all sites.

Definition at line 47 of file MTStationList.h.

Referenced by main(), and PromptAndReadFreqIndex().

void gplib::MTStationList::GetData ( const std::string  filename)

Read a list of filenames and the associated data in those files to fill the list.

Definition at line 25 of file MTStationList.cpp.

References gplib::MTStation::GetData(), gplib::MTStation::SetLatitude(), and gplib::MTStation::SetLongitude().

Referenced by main(), and PromptAndReadStationFile().

tStationList& gplib::MTStationList::GetList ( )
inline

Access to the complete vector of Stations.

Definition at line 31 of file MTStationList.h.

Referenced by main(), and PrintComponent().

void gplib::MTStationList::WriteAllData ( )

Write the data of each station to an individual file.

Definition at line 87 of file MTStationList.cpp.

void gplib::MTStationList::WriteList ( const std::string  filename = "station.list")

Write the names of the sites in the current list to a file.

Definition at line 72 of file MTStationList.cpp.

Referenced by main().


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