Ignore:
Timestamp:
Jun 15, 1999, 3:53:04 PM (26 years ago)
Author:
ansari
Message:

Archeops 24, gestion byte-swap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/archeopsfile.h

    r310 r315  
    66#include <stack>
    77
     8
     9#ifndef nb_max_bolo
    810#define _archeops               //  Acquisition Archeops (avec transputer)
    911#define programme
    10 
    1112extern "C" {
    1213#include "archeops.h"
    1314}
     15#endif
     16
     17#include "ssthandler.h"
    1418
    1519enum {
     
    4246class BlockSet;
    4347
    44 class ArchExc : public exception {
     48class ArchExc {
    4549public:
    4650  ArchExc(string s) : msg(s) {}
     
    7579  void pushMark();    // push current file position, and "last" blocks
    7680  void popMark();     // pops last file position and "last" blocks
    77  
     81   
    7882  void grabLastBlocs(ArcheopsFile const& oldFile);
    7983 
     84  block_type_modele*  aheadBlock();   // internal buffer
    8085  block_type_modele*  currentBlock(); // internal buffer
     86  bool sameBlockNumAhead();
    8187 
    8288  block_type_param*         lastParam();  // saved blocks, including current
     
    101107  // On travaille en MJD = JD - 2450000.0, = 9 octobre 1995 midi UTC
    102108  // 1er juillet 1999 minuit UTC = JD 2451360.5,   MJD 1360.5
     109  // Ces fonctions travaillent sur le dernier bloc GPS
    103110  int getGPSBlockNum();
    104111  double getGPSUTC();  // en secondes depuis minuit UTC
     
    106113  double getGPSLat();  // degres, +  = NORD
    107114  double getGPSLong(); // degres, +  = EST
    108  
     115   
    109116  // Bolo
     117  int getBoloBlockNum();
    110118  long getRawBolo(int ibolo, int imesure);   // donnee brute, avec seulement soustraction offset
    111119  double getMuVBolo(int ibolo, int imesure); // microvolts, filtre avec filtre carre
    112120 
    113121  // SST, gyros, etc
     122  int getSSTBlockNum();
     123  void needSSTProcessMask(int mask);
     124  long getSSTSignal(int iDiode, int imesure);
    114125 
    115126  double getAzimut(int imesure);
     
    119130  double getAlpha(int imesure);
    120131  double getDelta(int imesure);
    121  
    122  
     132   
    123133protected:
    124134  BlockSet*                 blockSet;
     
    128138  void saveCurBlock();
    129139  void postProcessBlock();
     140
     141  void swapEntete(block_type_modele* blk);
     142  void swapContent(block_type_modele* blk);
    130143 
    131144  void computeMJD(string const& fname);
    132  
    133   block_type_modele         curBlock;
     145   
    134146  int                       curKind;
    135147  int                       curRawKind;
    136   size_t                    curPos;
     148  long                      curPos;
     149  long                      peekPos;
    137150  size_t                    fLen;
    138151  FILE* f;
Note: See TracChangeset for help on using the changeset viewer.