#include #include #include "archeopsfile.h" #include "toisvr.h" using namespace std; //introduces namespace std int main() { TOISvr svr; svr.SetFile("h99_04_29-15h36m22"); svr.AddInfo(boloTens,0); svr.AddInfo(boloTens,1); svr.AddInfo(boloTens,2); svr.AddInfo(boloTens,3); TOIIter iter = svr.DoQuery(); while (iter.Next()) { cout << setprecision(15) << iter.getTime() << " " << setprecision(4) << iter.getValue(0) << " " << iter.getValue(1) << " " << iter.getValue(2) << " " << iter.getValue(3) << "\n"; } /* int nblk[20]; for (int i=0; i<20; i++) nblk[i] = 0; cout << "opening" << endl; //ArcheopsFile file("Stock:ARCHEOPS:h99_04_29-15h36m22"); ArcheopsFile file("h99_04_29-15h36m22"); cout << file.getStartMJD() << endl; cout << "reading" << endl; while (file.nextBlock()) { //cout << file.blockKdName() << " " << file.blockNum() << "\n"; nblk[file.blockKind()]++; } cout << "done" << endl; for (int i=0; i<20; i++) cout << i <<" " << nblk[i] << endl; */ }