Ignore:
Timestamp:
07/17/08 13:16:26 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r9002 r9003  
    997997// Print the contents of the sequence to the file with name filename
    998998//
    999 void MSequence::WriteFile(const char *name, const Option_t *o) const
     999Bool_t MSequence::WriteFile(const char *name, const Option_t *o) const
    10001000{
    10011001    ofstream fout(name);
    10021002    if (!fout)
    10031003    {
    1004         gLog << err << "Cannot open file " << name << ": ";
     1004        gLog << err << "ERROR - Cannot open file " << name << ": ";
    10051005        gLog << strerror(errno) << endl;
    1006         return;
     1006        return kFALSE;
    10071007    }
    10081008
    10091009    Print(fout, o);
     1010
     1011    if (!fout)
     1012    {
     1013        gLog << err << "ERROR - Writing file " << name << ": ";
     1014        gLog << strerror(errno) << endl;
     1015        return kFALSE;
     1016    }
     1017
     1018    return kTRUE;
    10101019}
    10111020
  • trunk/MagicSoft/Mars/mjobs/MSequence.h

    r9002 r9003  
    116116
    117117    // I/O
    118     void WriteFile(const char *filename, const Option_t *o) const;
    119     void WriteFile(const char *filename) const { WriteFile(filename,""); } //*MENU *ARGS={filename=>fBaseName}
     118    Bool_t WriteFile(const char *filename, const Option_t *o) const;
     119    Bool_t WriteFile(const char *filename) const { return WriteFile(filename,""); } //*MENU *ARGS={filename=>fBaseName}
    120120
    121121    // TObject
Note: See TracChangeset for help on using the changeset viewer.