| 
            Last change
 on this file since 3637 was             3635, checked in by ansari, 16 years ago           | 
        
        
          | 
             
Amelioration/ correction diverses, introduction du programme de lecture / traitement multi-thread mcrd.cc - Reza 26/05/2009 
 
           | 
        
        
          | 
            File size:
            1009 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | #ifndef  RARDFITS_H_SEEN
 | 
|---|
| 2 | #define  RARDFITS_H_SEEN
 | 
|---|
| 3 | 
 | 
|---|
| 4 | //----------------------------------------------------------------
 | 
|---|
| 5 | // classes de threads pour lecture de fichier fits produit 
 | 
|---|
| 6 | //    par le programme d'acquisition TAcq/ de BAORadio
 | 
|---|
| 7 | // LAL -      R. Ansari - Mai 2009
 | 
|---|
| 8 | //----------------------------------------------------------------
 | 
|---|
| 9 | 
 | 
|---|
| 10 | #include "racqumem.h"
 | 
|---|
| 11 | #include <string>
 | 
|---|
| 12 | #include <vector>
 | 
|---|
| 13 | #include <iostream>
 | 
|---|
| 14 | #include "sopnamsp.h"
 | 
|---|
| 15 | #include "zthread.h"
 | 
|---|
| 16 | 
 | 
|---|
| 17 | #include "brtypes.h"
 | 
|---|
| 18 | #include "brpaqu.h"
 | 
|---|
| 19 | 
 | 
|---|
| 20 | using namespace std;
 | 
|---|
| 21 | 
 | 
|---|
| 22 | 
 | 
|---|
| 23 | //-------------------------------------------------------
 | 
|---|
| 24 | // Classe thread de lecture des fichiers (mini)fits
 | 
|---|
| 25 | //-------------------------------------------------------
 | 
|---|
| 26 | 
 | 
|---|
| 27 | class BRFitsReader : public ZThread {
 | 
|---|
| 28 | public: 
 | 
|---|
| 29 |   BRFitsReader(RAcqMemZoneMgr& mem, vector<string>& infiles, bool fgnotrl=false); 
 | 
|---|
| 30 | 
 | 
|---|
| 31 |   virtual void run(); 
 | 
|---|
| 32 |   void Stop(); 
 | 
|---|
| 33 |   inline void STOP() { stop_ = true; }  
 | 
|---|
| 34 | 
 | 
|---|
| 35 | protected:
 | 
|---|
| 36 |   RAcqMemZoneMgr& memgr;
 | 
|---|
| 37 |   vector<string> infiles_;
 | 
|---|
| 38 |   bool fgnotrl_;
 | 
|---|
| 39 |   bool stop_;  
 | 
|---|
| 40 | };
 | 
|---|
| 41 | 
 | 
|---|
| 42 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.