Ignore:
Timestamp:
10/15/03 19:15:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r2267 r2386  
    1414
    1515#pragma link C++ class MLog+;
     16#pragma link C++ class MReadSocket+;
    1617
    1718#pragma link C++ class MIter+;
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r2299 r2386  
    168168{
    169169    fProgress = bar;
    170     fProgress->SetBit(kMustCleanup);
     170    if (fProgress)
     171        fProgress->SetBit(kMustCleanup);
    171172}
    172173
     
    187188    MParContainer::SetDisplay(d);
    188189    if (!d)
    189     {
    190190        fProgress=NULL;
    191         return;
    192     }
    193 
    194     d->SetBit(kMustCleanup);
     191    else
     192        d->SetBit(kMustCleanup);
     193
    195194    if (fParList)
    196195        fParList->SetDisplay(d);
     
    269268Bool_t MEvtLoop::ProcessGuiEvents(Int_t num, Int_t entries)
    270269{
    271     if (!fProgress || gROOT->IsBatch())
     270    if (gROOT->IsBatch())
    272271        return kTRUE;
    273272
     
    286285            fDisplay->ClearStatus();
    287286            break;
     287        //
     288        // If the display is not on the heap (means: not created
     289        // with the new operator) the object is deleted somewhere
     290        // else in the code. It is the responsibility of the
     291        // application which instantiated the object to make
     292        // sure that the correct action is taken. This can be
     293        // done by calling MStatusDisplay::CheckStatus()
     294        //
     295        // Because we are synchronous we can safely delete it here!
     296        //
     297        // Close means: Close the display but leave analysis running
     298        // Exit means: Close the display and stop analysis
     299        //
     300        case MStatusDisplay::kFileClose:
     301        case MStatusDisplay::kFileExit:
     302            rc = fDisplay->CheckStatus() == MStatusDisplay::kFileClose;
     303
     304            if (fDisplay->IsOnHeap())
     305                delete fDisplay;
     306
     307            //
     308            // This makes the display really disappear physically on
     309            // the screen in case of MStatusDisplay::kFileClose
     310            //
     311            gSystem->ProcessEvents();
     312
     313            return rc;
    288314        default:
    289             *fLog << warn << "MEvtloop: fDisplay->ChecStatus() has returned unknown status #" << fDisplay->CheckStatus() << "... cleared." << endl;
     315            *fLog << warn << "MEvtloop: fDisplay->CheckStatus() has returned unknown status #" << fDisplay->CheckStatus() << "... cleared." << endl;
    290316            fDisplay->ClearStatus();
    291317            break;
     
    293319
    294320    //
    295     // Check System time (don't loose too much time by updates)
    296     //
    297 
    298     // FIXME: Not thread safe
     321    // Check System time (don't loose too much time by updating the GUI)
     322    //
     323
     324    // FIXME: Not thread safe (if you have more than one eventloop running)
    299325    static Int_t start = num;
    300326    static TTime t1 = gSystem->Now();
     
    335361    // Set new progress bar position
    336362    //
    337     fProgress->SetPosition(num);
     363    if (fProgress)
     364        fProgress->SetPosition(num);
    338365
    339366    //
     
    346373        gSystem->ProcessEvents();
    347374    else
    348         gClient->ProcessEventsFor(fProgress);
     375        if (fProgress)
     376            gClient->ProcessEventsFor(fProgress);
    349377#endif
    350378
  • trunk/MagicSoft/Mars/mbase/MFilter.cc

    r1938 r2386  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  07/2001 <mailto:tbretz@uni-sw.gwdg.de>
     18!   Author(s): Thomas Bretz, 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2001
     20!   Copyright: MAGIC Software Development, 2000-2003
    2121!
    2222!
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r2150 r2386  
    108108    }
    109109
     110    operator double() const //[s]
     111    {
     112        return fNanoSec/1e9+(fHour*24*60*60+fMin*60+fSec);
     113    }
     114
    110115    ClassDef(MTime, 1)  //A generalized MARS time stamp
    111116};
  • trunk/MagicSoft/Mars/mbase/Makefile

    r2267 r2386  
    4444           MEvtLoop.cc \
    4545           MIter.cc \
     46           MReadSocket.cc \
    4647           MDirIter.cc \
    4748           MGList.cc \
Note: See TracChangeset for help on using the changeset viewer.