| Line |  | 
|---|
| 1 | #include "toi.h" | 
|---|
| 2 | #include "toiprocessor.h" | 
|---|
| 3 | #include "toimanager.h" | 
|---|
| 4 | #include "fitstoirdr.h" | 
|---|
| 5 | #include "asciitoiwtr.h" | 
|---|
| 6 |  | 
|---|
| 7 | void main(int argc, char** argv) { | 
|---|
| 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(); | 
|---|
| 28 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.