GPLIB++
SeismicStationList.h
Go to the documentation of this file.
1 #ifndef SEISMICSTATIONLIST_H_
2 #define SEISMICSTATIONLIST_H_
3 #include <vector>
4 #include <boost/shared_ptr.hpp>
5 #include "SeismicDataComp.h"
6 
7 namespace gplib
8  {
9  /** \addtogroup seistools Seismic data analysis and modeling */
10  /* @{ */
11 
12  //! Manages a collection of seismic traces, mainly provides functionality to read in data specified in a file with names
14  {
15  public:
16  typedef std::vector<boost::shared_ptr<SeismicDataComp> > tseiscompvector;
17  private:
18  tseiscompvector StationList;
19  public:
20  //! Return the content of the list for manipulation
22  {
23  return StationList;
24  }
25  //! return a read only version of thelist
26  const tseiscompvector &GetList() const
27  {
28  return StationList;
29  }
30  //! read in a file with names and optionally coordinates
31  void ReadList(const std::string filename);
32  //! Write out a file with the names of the files in the current list
33  void WriteList(const std::string filename = "station.list");
34  //! Write out the data of the files in the list
35  void WriteAllData();
37  virtual ~SeismicStationList();
38  };
39  /* @} */
40  }
41 #endif /*SEISMICSTATIONLIST_H_*/
tseiscompvector & GetList()
Return the content of the list for manipulation.
void WriteAllData()
Write out the data of the files in the list.
std::vector< boost::shared_ptr< SeismicDataComp > > tseiscompvector
Manages a collection of seismic traces, mainly provides functionality to read in data specified in a ...
void ReadList(const std::string filename)
read in a file with names and optionally coordinates
const tseiscompvector & GetList() const
return a read only version of thelist
void WriteList(const std::string filename="station.list")
Write out a file with the names of the files in the current list.