Ignore:
Timestamp:
08/01/02 12:31:56 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1337 r1471  
    5757#include "MTaskList.h"
    5858
     59#include <fstream.h>     // ofstream, SavePrimitive
     60
    5961#include <TClass.h>
    6062#include <TBaseClass.h>
     
    512514}
    513515
     516
     517void MTaskList::SavePrimitive(ofstream &out, Option_t *o="")
     518{
     519    out << "   MTaskList " << ToLower(fName) << ";" << endl << endl;
     520
     521    TIter Next(fTasks);
     522
     523    TObject *cont = NULL;
     524    while ((cont=Next()))
     525    {
     526        cont->SavePrimitive(out, "");
     527        out << "   " << ToLower(fName) << ".AddToList(&";
     528        out << ToLower(cont->GetName()) << ");" << endl << endl;
     529    }
     530}
Note: See TracChangeset for help on using the changeset viewer.