printphase.cpp
Go to the documentation of this file.00001 #include "MTStation.h"
00002 #include <iostream>
00003 #include <iomanip>
00004 using namespace std;
00005 using namespace gplib;
00006
00007 int main(int argc, char *argv[])
00008 {
00009 string infilename;
00010 MTStation Data;
00011 if (argc == 2)
00012 {
00013 infilename = argv[1];
00014 }
00015 else
00016 {
00017 cout << "Infilename: ";
00018 cin >> infilename;
00019 }
00020 Data.GetData(infilename);
00021 const unsigned int width = 10;
00022 for (unsigned int i = 0; i < Data.GetMTData().size(); ++i)
00023 {
00024 cout << setw(width) << setfill(' ') << setprecision(4) << 1. / Data.at(
00025 i).GetFrequency() << " ";
00026 cout << setw(width) << setfill(' ') << setprecision(4)
00027 << Data.at(i).GetPhixx() << " ";
00028 cout << setw(width) << setfill(' ') << setprecision(4)
00029 << Data.at(i).GetdPhixx() << " ";
00030 cout << setw(width) << setfill(' ') << setprecision(4)
00031 << Data.at(i).GetPhixy() << " ";
00032 cout << setw(width) << setfill(' ') << setprecision(4)
00033 << Data.at(i).GetdPhixy() << " ";
00034 cout << setw(width) << setfill(' ') << setprecision(4)
00035 << Data.at(i).GetPhiyx() << " ";
00036 cout << setw(width) << setfill(' ') << setprecision(4)
00037 << Data.at(i).GetdPhiyx() << " ";
00038 cout << setw(width) << setfill(' ') << setprecision(4)
00039 << Data.at(i).GetPhiyy() << " ";
00040 cout << setw(width) << setfill(' ') << setprecision(4)
00041 << Data.at(i).GetdPhiyy() << " ";
00042 cout << endl;
00043 }
00044 }