source: Sophya/trunk/ArchTOIPipe/TestPipes/tsttoi2.cc@ 1437

Last change on this file since 1437 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: 616 bytes
Line 
1#include "toi.h"
2#include "toiprocessor.h"
3#include "fitstoirdr.h"
4#include "fitstoiwtr.h"
5#include "toisqfilter.h"
6#include "toimanager.h"
7
8int main(int argc, char** argv) {
9 cout << "tsttoi starting" << endl;
10 TOIManager* mgr = TOIManager::getManager();
11 mgr->setRequestedSample(11680920,11710584);
12 FITSTOIReader r(argv[1]); cout << "reader created" << endl;
13 FITSTOIWriter w(argv[2]);
14 w.setOutFlags(true);
15
16 TOI* toi = new TOIRegularWindow("t1");
17 // toi->dbg=true;
18 r.addOutput("boloMuV_11", toi);
19 w.addInput("bolo_filtered", toi);
20
21 r.start();
22 w.start();
23
24 mgr->joinAll();
25
26 return(0);
27}
Note: See TracBrowser for help on using the repository browser.