source: Sophya/trunk/ArchTOIPipe/TestPipes/fits2asc.cc@ 1454

Last change on this file since 1454 was 1437, checked in by ansari, 25 years ago

Protections diverses dans TOIProcessor et FITSTOIReader/Writer
Ajout d'un TOI (TOISeqBuffered) avec gestion d'un buffer entre put/get
Ajout de processeurs de test (RZTOIProc...) , programme test associe
et SMakefile (pour compil avec SOPHYA)

Reza 12/3/2001

File size: 631 bytes
RevLine 
[1368]1#include "toi.h"
2#include "toiprocessor.h"
3#include "toimanager.h"
4#include "fitstoirdr.h"
5#include "asciitoiwtr.h"
6
[1437]7int main(int argc, char** argv) {
[1368]8 TOIManager* mgr = TOIManager::getManager();
9 // mgr->setRequestedSample(11680920,11710584);
10 mgr->setRequestedSample(11680920,11690000);
11 FITSTOIReader r(argv[1]);
12 ASCIITOIWriter w(argv[2]);
13
14
15 int n = r.getNOut();
16 for (int i=0; i<n; i++) {
17 TOI* toi = new TOIRegularWindow("t1");
18 string n = r.getOutName(i);
19 cout << "got TOI " << n << endl;
20 r.addOutput(n, toi);
21 w.addInput(n, toi);
22 }
23
24 r.start();
25 w.start();
26
27 mgr->joinAll();
[1437]28
29 return(0);
[1368]30}
Note: See TracBrowser for help on using the repository browser.