Ignore:
Timestamp:
01/20/05 14:27:59 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

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

    r5836 r5911  
    972972    fLog->ReadEnv(env, prefix, print);
    973973
     974    if (!fParList)
     975    {
     976        *fLog << warn << "WARNING - No parameter list to propagate resources to." << endl;
     977        return kTRUE;
     978    }
     979
    974980    if (fParList->ReadEnv(env, prefix, print)==kERROR)
    975981    {
     
    986992// If 'config=0' kTRUE is returned.
    987993//
    988 Bool_t MEvtLoop::ReadEnv(const char *config)
     994Bool_t MEvtLoop::ReadEnv(const char *config, Bool_t print)
    989995{
    990996    if (!config)
     
    9981004    }
    9991005
    1000     return ReadEnv(TEnv(config));
     1006    return ReadEnv(TEnv(config), "", print);
    10011007}
    10021008
     
    10331039    *fLog << inf << "Writing resources: " << prefix /*TEnv::fRcName << " to " << env.GetRcName()*/ << endl;
    10341040
     1041    fLog->WriteEnv(env, prefix, print);
     1042
     1043    if (!fParList)
     1044    {
     1045        *fLog << warn << "WARNING - No parameter list to get resources from." << endl;
     1046        return kTRUE;
     1047    }
     1048
     1049
    10351050    if (fParList->WriteEnv(env, prefix, print)!=kTRUE)
    10361051    {
     
    10381053        return kFALSE;
    10391054    }
    1040 
    1041     fLog->WriteEnv(env, prefix, print);
    10421055
    10431056    return kTRUE;
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r5832 r5911  
    8585    Bool_t WriteEnv(TEnv &env, TString prefix="", Bool_t print=kFALSE) const;
    8686
    87     Bool_t ReadEnv(const char *config);
     87    Bool_t ReadEnv(const char *config, Bool_t print=kFALSE);
    8888
    8989    void RecursiveRemove(TObject *obj);
  • trunk/MagicSoft/Mars/mbase/MParList.cc

    r4828 r5911  
    911911{
    912912    if (print)
    913         *fLog << all << "MParList::ReadEnv: " << prefix << " (" << (int)print << ")" << endl;
     913        *fLog << all << "MParList::ReadEnv: " << prefix << endl;
    914914
    915915    MParContainer *cont = NULL;
Note: See TracChangeset for help on using the changeset viewer.