Changeset 8963 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
06/16/08 00:48:18 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreport
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreport/MReportCC.cc

    r8955 r8963  
    7777        return kFALSE;
    7878
    79     fRecTime = (MTime*)plist.FindCreateObj("MTime", "MTimeRec");
    80     if (!fRecTime)
    81         return kFALSE;
    82 
    8379
    8480    fTH = (MCameraTH*)plist.FindCreateObj("MCameraTH");
     
    147143    {
    148144        fRecRep->InterpreteRec(str, ver, *fTH, *fTD, *fRecTemp);
    149         fRecRep->Copy(*this);
     145        Copy(*fRecRep);
    150146        fRecRep->SetReadyToSave();
    151147    }
  • trunk/MagicSoft/Mars/mreport/MReportCC.h

    r8955 r8963  
    2727
    2828    MReportRec     *fRecRep;  //! Pipe interpretation to MReportRec if necessary
    29     MTime          *fRecTime; //! Time stamp for Receiver part of reports
    3029
    3130    // Internal
  • trunk/MagicSoft/Mars/mreport/MReportFileRead.cc

    r8955 r8963  
    6868
    6969    fIn = new ifstream;
     70
    7071    fList = new THashTable(1,1);
    7172    fList->SetOwner();
     
    8990MReportHelp *MReportFileRead::GetReportHelp(const TString &str) const
    9091{
    91     return (MReportHelp*)fList->FindObject(str);
     92    return static_cast<MReportHelp*>(fList->FindObject(str));
    9293}
    9394
     
    143144Int_t MReportFileRead::PreProcess(MParList *pList)
    144145{
    145     //MTime *time = (MTime*)pList->FindCreateObj("MTime");
    146     //if (!time)
    147     //    return kFALSE;
    148146    fNumLine = 0;
    149147
     148    // Add the MReport instances first to the paramter list
     149    // so that SetupReading can find them if needed
     150    fList->R__FOR_EACH(MReportHelp, AddToList)(*pList);
     151
     152    // Setup reading
    150153    TIter Next(fList);
    151154    MReportHelp *help=0;
     
    153156        if (!help->SetupReading(*pList))
    154157            return kFALSE;
    155 
    156     fList->R__FOR_EACH(MReportHelp, AddToList)(*pList);
    157158
    158159    //
  • trunk/MagicSoft/Mars/mreport/MReportFileRead.h

    r8955 r8963  
    88#include "MTime.h"
    99#endif
    10 
    11 /*// gcc 3.2
    12 //class ifstream;
    13 #include <iosfwd>
    14 */
    1510
    1611class THashTable;
Note: See TracChangeset for help on using the changeset viewer.