Ignore:
Timestamp:
08/02/02 09:32:34 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r1471 r1474  
    3939#include <fstream.h>     // ofstream, AsciiWrite
    4040
     41#include <TROOT.h>       // TROOT::Identlevel
    4142#include <TClass.h>      // IsA
     43#include <TObjArray.h>   // TObjArray
    4244#include <TBaseClass.h>  // GetClassPointer
    43 #include <TROOT.h>       // TROOT::Identlevel
    4445#include <TMethodCall.h> // TMethodCall, AsciiWrite
    4546#include <TDataMember.h> // TDataMember, AsciiWrite
     
    347348}
    348349
     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//
    349356void MParContainer::SavePrimitive(ofstream &out, Option_t *o="")
    350357{
     
    354361}
    355362
     363void MParContainer::GetNames(TObjArray &arr) const
     364{
     365    arr.AddLast(new TNamed(fName, fTitle));
     366}
     367
     368void 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.