MTStationList Class Reference
[MT data analysis, processing and inversion]

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

#include <MTStationList.h>

List of all members.

Public Member Functions

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


Detailed Description

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

Definition at line 14 of file MTStationList.h.


Constructor & Destructor Documentation

MTStationList::MTStationList (  ) 

Definition at line 15 of file MTStationList.cpp.

MTStationList::~MTStationList (  )  [virtual]

Definition at line 18 of file MTStationList.cpp.


Member Function Documentation

tStationList& MTStationList::GetList (  )  [inline]

Access to the complete vector of Stations.

Definition at line 26 of file MTStationList.h.

Referenced by main(), and PrintComponent().

void 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 22 of file MTStationList.cpp.

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

Referenced by main(), and PromptAndReadStationFile().

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

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

Definition at line 63 of file MTStationList.cpp.

Referenced by main().

void MTStationList::WriteAllData (  ) 

Write the data of each station to an individual file.

Definition at line 78 of file MTStationList.cpp.

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

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

Definition at line 34 of file MTStationList.h.

Referenced by main(), and PrintComponent().

const trealdata& MTStationList::GetCommonFrequencies (  )  [inline]

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

Definition at line 36 of file MTStationList.h.

Referenced by main(), and PromptAndReadFreqIndex().

MTStation & MTStationList::at ( int  loc  ) 

Get a reference to a site at a given index.

Definition at line 58 of file MTStationList.cpp.

Referenced by main(), and PrintComponent().


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

Generated on Fri Jul 4 15:30:22 2008 for GPLIB++ by  doxygen 1.5.5