Changeset 18570 for trunk/Mars/mfileio


Ignore:
Timestamp:
09/03/16 20:41:00 (8 years ago)
Author:
tbretz
Message:
Do not only write container name as CLNAME but also container type as CLTYPE
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mfileio/MWriteFitsFile.cc

    r18280 r18570  
    525525            return kFALSE;
    526526
    527          char attrName[10];
    528          sprintf(attrName, "CLNAME%d", num);
    529          num++;
    530 
    531          InitAttr(attrName,
     527         InitAttr(Form("CLNAME%d", num),
    532528                  "A",
    533529                  (void*)i_subTable->first.Data(),
     
    536532                  fitsTable);
    537533
     534         InitAttr(Form("CLTYPE%d", num),
     535                  "A",
     536                  (void*)i_subTable->second.GetContainer()->ClassName(),
     537                  NULL,
     538                  "MARS container class",
     539                  fitsTable);
     540
     541         num++;
    538542         i_subTable++;
    539543         }
Note: See TracChangeset for help on using the changeset viewer.