Changeset 2041 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
Jun 3, 2002, 4:23:39 PM (23 years ago)
Author:
ansari
Message:

Modifs fg_ --> FLAG_ ds FITSTOIReader et Writer , Reza 03/06/2002

Location:
trunk/ArchTOIPipe/Kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/fitstoirdr.cc

    r2011 r2041  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: fitstoirdr.cc,v 1.28 2002-05-16 14:39:08 ansari Exp $
     5// $Id: fitstoirdr.cc,v 1.29 2002-06-03 14:23:39 ansari Exp $
    66
    77#include "fitstoirdr.h"
     
    107107    fits_get_colname(fptr, CASESEN, templt, colname, &colnum, &fstatus);
    108108    cout << "FITSTOIReader col " << colname << endl;
    109     if (!strncmp(colname, "fg_", 3)) {
     109    // On verifie si c'est une colonne de flag
     110    if (!strncmp(colname, "fg_", 3) || !strncmp(colname, "FLAG_", 5) ) {
    110111      colsinput[itoi].second=true;
    111112    } else {
  • trunk/ArchTOIPipe/Kernel/fitstoiwtr.cc

    r1798 r2041  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: fitstoiwtr.cc,v 1.20 2001-11-27 22:05:41 aubourg Exp $
     5// $Id: fitstoiwtr.cc,v 1.21 2002-06-03 14:23:39 ansari Exp $
    66
    77#include "fitstoiwtr.h"
     
    2525  fits_unlock();
    2626  name = "wtr";
    27 
     27  setLongFlagPrefix();
    2828  totnscount = 0;
    2929}
     
    9292    if (p.second) {
    9393      ck++;
    94       coln[ck] = "fg_" + coln[ck-1];
     94      if (longfgprefix) coln[ck] = "FLAG_" + coln[ck-1];
     95      else coln[ck] = "fg_" + coln[ck-1];
    9596      colnames[ck] = const_cast<char*>(coln[ck].c_str()); 
    9697      cout << " Column[" << ck << "] -Flag- Name=" << coln[ck] << endl;
  • trunk/ArchTOIPipe/Kernel/fitstoiwtr.h

    r1785 r2041  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: fitstoiwtr.h,v 1.11 2001-11-22 16:54:54 cecile Exp $
     7// $Id: fitstoiwtr.h,v 1.12 2002-06-03 14:23:39 ansari Exp $
    88
    99
     
    3131
    3232  virtual void  run();
    33  
     33
     34  inline void   setLongFlagPrefix(bool fg = true) { longfgprefix = fg; }
    3435  inline int_8  ProcessedSampleCount() const { return totnscount; }
    3536 
     
    4546
    4647  int_8 totnscount;   // Nombre total d'echantillon processe
     48  bool longfgprefix;  // if true ---> FLAG_ / sinon fg_
    4749};
    4850
Note: See TracChangeset for help on using the changeset viewer.