Changeset 1488 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 08/08/02 09:15:26 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r1483 r1488 49 49 ClassImp(MWriteRootFile); 50 50 51 static const TString gsDefName = "MWriteRootFile"; 52 static const TString gsDefTitle = "Task which writes a root-output file"; 51 53 // -------------------------------------------------------------------------- 52 54 // … … 56 58 MWriteRootFile::MWriteRootFile() : fOut(NULL) 57 59 { 58 fName = "MWriteRootFile";59 fTitle = "Task which writes a root-output file";60 fName = gsDefName; 61 fTitle = gsDefTitle; 60 62 61 63 fBranches.SetOwner(); … … 76 78 const char *title) 77 79 { 78 fName = name ? name : "MWriteRootFile";79 fTitle = title ? title : "Task which writes a root-output file";80 fName = name ? name : gsDefName.Data(); 81 fTitle = title ? title : gsDefTitle.Data(); 80 82 81 83 // … … 409 411 out << fOut->GetOption() << "\", \""; 410 412 out << fOut->GetTitle() << "\", "; 411 out << fOut->GetCompressionLevel() << ", \""; 412 out << fName << "\", \"" << fTitle << "\");" << endl;; 413 out << fOut->GetCompressionLevel(); 414 415 if (fName!=gsDefName || fTitle!=gsDefTitle) 416 { 417 out << ", \"" << fName << "\""; 418 if (fTitle!=gsDefTitle) 419 out << ", \"" << fTitle << "\""; 420 } 421 out << ");" << endl; 422 413 423 414 424 MRootFileBranch *entry; … … 416 426 while ((entry=(MRootFileBranch*)Next())) 417 427 { 428 out << " " << GetUniqueName() << ".AddContainer("; 429 418 430 if (entry->GetContainer()) 419 431 { … … 424 436 out << "\"" << entry->GetContName() << "\""; 425 437 426 out << ", \"" << entry->GetName() << "\", \""; 427 out << entry->GetTitle() << "\");" << endl; 438 out << ", \"" << entry->GetName() << "\""; 439 if ((TString)entry->GetTitle()!="") 440 out << ", \"" << entry->GetTitle() << "\""; 441 442 out <<");" << endl; 428 443 } 429 444 }
Note:
See TracChangeset
for help on using the changeset viewer.