| Last change
 on this file since 3747 was             3688, checked in by ansari, 16 years ago | 
        
          | 
Introduction de la classe FitsCubeWriter - Reza 28/11/2009
 | 
        
          | File size:
            1016 bytes | 
      
      
| Rev | Line |  | 
|---|
| [3688] | 1 | #ifndef  BRDISKW_H_SEEN | 
|---|
|  | 2 | #define  BRDISKW_H_SEEN | 
|---|
|  | 3 |  | 
|---|
|  | 4 | //---------------------------------------------------------------- | 
|---|
|  | 5 | // Projet BAORadio - (C) LAL/IRFU  2008-2010 | 
|---|
|  | 6 | // Classes de threads ecriture de donnees traitees BAORadio | 
|---|
|  | 7 | //---------------------------------------------------------------- | 
|---|
|  | 8 |  | 
|---|
|  | 9 | #include "racqumem.h" | 
|---|
|  | 10 | #include <string> | 
|---|
|  | 11 | #include <vector> | 
|---|
|  | 12 | #include <iostream> | 
|---|
|  | 13 |  | 
|---|
|  | 14 | #include "brpaqu.h" | 
|---|
|  | 15 | #include "minifits.h" | 
|---|
|  | 16 |  | 
|---|
|  | 17 | using namespace std; | 
|---|
|  | 18 |  | 
|---|
|  | 19 |  | 
|---|
|  | 20 | // ---- Classe FitsCubeWriter : ecriture de fichier FITS BAORadio 3D (plusieurs fibres dans un fichier) | 
|---|
|  | 21 | class FitsCubeWriter : public SOPHYA::ZThread { | 
|---|
|  | 22 | public: | 
|---|
|  | 23 | FitsCubeWriter(RAcqMemZoneMgr& mmgr, string outpath, uint_4 nblocperfile); | 
|---|
|  | 24 |  | 
|---|
|  | 25 | virtual void run(); | 
|---|
|  | 26 | inline void Stop() { stop_ = true; } | 
|---|
|  | 27 | inline void STOP() { stop_ = true; } | 
|---|
|  | 28 | protected: | 
|---|
|  | 29 |  | 
|---|
|  | 30 | RAcqMemZoneMgr& memgr_; | 
|---|
|  | 31 | string outpath_; | 
|---|
|  | 32 | uint_4 numfile_;  // numero de fichier courant | 
|---|
|  | 33 | uint_4 nblocperfile_;  // Nombre de bloc (zone memoire) mis dans un fichier | 
|---|
|  | 34 | size_t totnbyteswrt_; | 
|---|
|  | 35 |  | 
|---|
|  | 36 | bool stop_; | 
|---|
|  | 37 | }; | 
|---|
|  | 38 |  | 
|---|
|  | 39 |  | 
|---|
|  | 40 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.