Ignore:
Timestamp:
Nov 18, 2005, 6:44:57 PM (20 years ago)
Author:
ansari
Message:

debut modifs nouveau fits pour support I/O chaines de caracteres - Reza 18/11/2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsinoutfile.h

    r2820 r2843  
    6363 static int DataType(complex<r_8>  d)   { return TDBLCOMPLEX; }
    6464
     65 static int DataType(char*  d)   { return TSTRING; }
     66
    6567 // Conversion entre type FITS et chaine - exemple TFLOAT -> r_4
    6668 static string ImageTypeToTypeString(int ityp);
     
    8890 inline fitsfile*  FitsPtr() const { return fptr_; }
    8991 static float      cfitsioVersion();
     92 //! Return the SOPHYA FitsIOServer version
     93 static float      Version() { return 2.0; }
    9094
    9195 //---- Header manipulation methods
     
    150154 inline int         GetDef_TableType() { return def_tbltype; }
    151155
     156 //! Defines default column width for strings (Aw)
     157 inline void        SetDef_StrColWidth(long w=16) { def_strcolw = w; }
     158 //! Return default column width for strings (Aw)
     159 inline long        GetDef_StrColWidth() { return def_strcolw; }
     160
    152161 //! Insert (add) a new column
    153162 void              InsertColumn(int numcol, const char* colname, const char* fmt);
     
    158167
    159168 // Manipulation des informations de l'entete
    160  //! Returns a given keyword value
    161   string           KeyValue(string const & key);
     169 //! Retrieve a keyword value from the header
     170  inline string    KeyValue(string const & key)
     171    { bool nosk; return KeyValue(key, nosk); }
     172 //! Retrieve a keyword value from the header
     173  string           KeyValue(string const & key, bool& nosk);
    162174 //! Read header records and appends the information to dvl
    163175 int               GetHeaderRecords(DVList& dvl);
     
    184196 // Default table type
    185197 int def_tbltype;
     198 // default column width for strings
     199 long def_strcolw;
    186200};
    187201
Note: See TracChangeset for help on using the changeset viewer.