Changeset 9003
- Timestamp:
- 07/17/08 13:16:26 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9002 r9003 24 24 - added fTelescope data member 25 25 - increased class version number accordingly 26 - added return value to WriteFile 26 27 27 28 * mjobs/MSequenceSQL.cc: -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r9002 r9003 997 997 // Print the contents of the sequence to the file with name filename 998 998 // 999 voidMSequence::WriteFile(const char *name, const Option_t *o) const999 Bool_t MSequence::WriteFile(const char *name, const Option_t *o) const 1000 1000 { 1001 1001 ofstream fout(name); 1002 1002 if (!fout) 1003 1003 { 1004 gLog << err << " Cannot open file " << name << ": ";1004 gLog << err << "ERROR - Cannot open file " << name << ": "; 1005 1005 gLog << strerror(errno) << endl; 1006 return ;1006 return kFALSE; 1007 1007 } 1008 1008 1009 1009 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; 1010 1019 } 1011 1020 -
trunk/MagicSoft/Mars/mjobs/MSequence.h
r9002 r9003 116 116 117 117 // I/O 118 voidWriteFile(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} 120 120 121 121 // TObject
Note:
See TracChangeset
for help on using the changeset viewer.