Changeset 8071
- Timestamp:
- 10/15/06 16:44:55 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8068 r8071 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2006/10/15 Thomas Bretz 22 23 * mbase/MEnv.[h,cc]: 24 - implmenetd the possibility to check whether the given resource 25 file eists 26 27 * star.cc, ganymed.c, callisto.cc: 28 - implemented an error if the resource file doen't exist 29 (returns 0xfe) 30 31 20 32 21 33 2006/10/15 -
trunk/MagicSoft/Mars/NEWS
r8070 r8071 2 2 3 3 *** <cvs> 4 5 - general: The programs now return 0xfe if the requested resource file 6 doesn't exist. 4 7 5 8 -
trunk/MagicSoft/Mars/callisto.cc
r8011 r8071 352 352 353 353 MEnv env(kConfig); 354 if (!env.IsValid()) 355 { 356 gLog << err << "Configuration file " << kConfig << " not found." << endl; 357 return 0xfe; 358 } 359 354 360 if (kModeC/* || kUseTest*/) 355 361 { -
trunk/MagicSoft/Mars/ganymed.cc
r8011 r8071 246 246 // 247 247 MEnv env(kConfig); 248 if (!env.IsValid()) 249 { 250 gLog << err << "Configuration file " << kConfig << " not found." << endl; 251 return 0xfe; 252 } 248 253 249 254 MJCut job(Form("MJCut #%d", seq.GetNumAnalysis())); -
trunk/MagicSoft/Mars/mbase/MEnv.cc
r7808 r8071 48 48 49 49 using namespace std; 50 51 //--------------------------------------------------------------------------- 52 // 53 // (Default) constructor. If the given file cannot be accessed the data 54 // member fName is set to "" which can then be checked by IsValid() 55 // 56 MEnv::MEnv(const char *name) : TEnv(name), fName(name) 57 { 58 fChecked.SetOwner(); 59 60 if (fName.IsNull()) 61 return; 62 63 TString fname(name); 64 gSystem->ExpandPathName(fname); 65 66 if (gSystem->AccessPathName(fname, kFileExists)) 67 fName = ""; 68 } 50 69 51 70 //--------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MEnv.h
r7450 r8071 26 26 27 27 public: 28 MEnv(const char *name="") : TEnv(name), fName(name) { fChecked.SetOwner(); } 28 MEnv(const char *name=""); 29 30 Bool_t IsValid() const { return !fName.IsNull(); } 29 31 30 32 TObject *Clone(const char *newname="") const; -
trunk/MagicSoft/Mars/star.cc
r8011 r8071 228 228 // 229 229 MEnv env(kConfig); 230 if (!env.IsValid()) 231 { 232 gLog << err << "Configuration file " << kConfig << " not found." << endl; 233 return 0xfe; 234 } 235 230 236 { 231 237 MJStar job(Form("MJStar #%d", seq.GetSequence()));
Note:
See TracChangeset
for help on using the changeset viewer.