Changeset 1474 for trunk/MagicSoft/Mars/mbase/MParContainer.cc
- Timestamp:
- 08/02/02 09:32:34 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r1471 r1474 39 39 #include <fstream.h> // ofstream, AsciiWrite 40 40 41 #include <TROOT.h> // TROOT::Identlevel 41 42 #include <TClass.h> // IsA 43 #include <TObjArray.h> // TObjArray 42 44 #include <TBaseClass.h> // GetClassPointer 43 #include <TROOT.h> // TROOT::Identlevel44 45 #include <TMethodCall.h> // TMethodCall, AsciiWrite 45 46 #include <TDataMember.h> // TDataMember, AsciiWrite … … 347 348 } 348 349 350 // -------------------------------------------------------------------------- 351 // 352 // Implementation of SavePrimitive. Used to write the call to a constructor 353 // to a macro. In the original root implementation it is used to write 354 // gui elements to a macro-file. 355 // 349 356 void MParContainer::SavePrimitive(ofstream &out, Option_t *o="") 350 357 { … … 354 361 } 355 362 363 void MParContainer::GetNames(TObjArray &arr) const 364 { 365 arr.AddLast(new TNamed(fName, fTitle)); 366 } 367 368 void MParContainer::SetNames(TObjArray &arr) 369 { 370 TNamed *name = (TNamed*)arr.First(); 371 372 fName = name->GetName(); 373 fTitle = name->GetTitle(); 374 375 delete arr.Remove(name); 376 arr.Compress(); 377 }
Note:
See TracChangeset
for help on using the changeset viewer.