SeismicStationList.h

Go to the documentation of this file.
00001 #ifndef SEISMICSTATIONLIST_H_
00002 #define SEISMICSTATIONLIST_H_
00003 #include <vector>
00004 #include <boost/shared_ptr.hpp>
00005 #include "SeismicDataComp.h"
00006 
00007 namespace gplib
00008   {
00009     /** \addtogroup seistools Seismic data analysis and modeling */
00010     /* @{ */
00011 
00012     //! Manages a collection of seismic traces, mainly provides functionality to read in data specified in a file with names
00013     class SeismicStationList
00014       {
00015     public:
00016       typedef std::vector<boost::shared_ptr<SeismicDataComp> > tseiscompvector;
00017     private:
00018       tseiscompvector StationList;
00019     public:
00020       //! Return the content of the list for manipulation
00021       tseiscompvector &GetList()
00022         {
00023           return StationList;
00024         }
00025       //! return a read only version of thelist
00026       const tseiscompvector &GetList() const
00027         {
00028           return StationList;
00029         }
00030       //! read in a file with names and optionally coordinates
00031       void ReadList(const std::string filename);
00032       //! Write out a file with the names of the files in the current list
00033       void WriteList(const std::string filename = "station.list");
00034       //! Write out the data of the files in the list
00035       void WriteAllData();
00036       SeismicStationList();
00037       virtual ~SeismicStationList();
00038       };
00039   /* @} */
00040   }
00041 #endif /*SEISMICSTATIONLIST_H_*/

Generated on Tue May 4 16:52:15 2010 for GPLIB++ by  doxygen 1.5.8