printfrequencies.cpp

Go to the documentation of this file.
00001 #include <iostream>
00002 #include <vector>
00003 #include "MTStationList.h"
00004 
00005 using namespace std;
00006 
00007 string infilename;
00008 
00009 int main()
00010   {
00011 
00012     
00013     vector<MTStation>::iterator it;
00014     MTStationList MTSites;
00015 
00016     cout << "Input Filename: ";
00017     cin >> infilename;
00018     MTSites.GetData(infilename);
00019 
00020     for (it = MTSites.GetList().begin(); it != MTSites.GetList().end(); ++it)
00021       {
00022         cout << it->GetName() << endl;
00023         for (size_t i = 0; i < it->GetFrequencies().size(); ++i)
00024           {
00025             cout << 1./it->GetMTData().at(i).GetFrequency() << endl;
00026           }
00027         cout << endl;
00028       }
00029   }
00030 

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