Changeset 14867 for trunk


Ignore:
Timestamp:
02/05/13 14:29:06 (12 years ago)
Author:
lyard
Message:
Added requirement to explicitely allow for fits comments auto-trim
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/ofits.h

    r14792 r14867  
    254254        if (!entry.check())
    255255        {//ETIENNE
     256            if (!fCommentTrimming)
     257                return false;
    256258            //looks like something went wrong. Maybe entry is too long ?
    257259            //try to remove the comment
     
    306308    Checksum fHeaderSum;
    307309
     310    bool fCommentTrimming;
     311
    308312public:
    309     ofits()
    310     {
    311     }
    312     ofits(const char *fname) : ofstream()
     313    ofits() : fCommentTrimming(false)
     314    {
     315    }
     316    ofits(const char *fname) : ofstream(),
     317                               fCommentTrimming(false)
    313318    {
    314319        this->open(fname);
     
    337342
    338343        ofstream::open(filename);
     344    }
     345
     346    void AllowCommentsTrimming(bool allow)
     347    {
     348        fCommentTrimming = allow;
    339349    }
    340350
Note: See TracChangeset for help on using the changeset viewer.