| Last change
 on this file since 8108 was             447, checked in by harald, 25 years ago | 
        
          | Bringing the sources for the octobertest under CVS controll.
(november, 3rd, 2000) | 
        
          | 
              
Property                 svn:executable
 set to                 * | 
        
          | File size:
            861 bytes | 
      
      
| Line |  | 
|---|
| 1 | //////////////////////////////////////////////////////////////////////// | 
|---|
| 2 | // | 
|---|
| 3 | //  MParWrite | 
|---|
| 4 | // | 
|---|
| 5 | //////////////////////////////////////////////////////////////////////// | 
|---|
| 6 |  | 
|---|
| 7 | #include "MParWrite.h" | 
|---|
| 8 |  | 
|---|
| 9 | #include "MParList.h" | 
|---|
| 10 | #include "MParContainer.h" | 
|---|
| 11 | #include "MObjBuffer.h" | 
|---|
| 12 |  | 
|---|
| 13 | ClassImp(MParWrite) | 
|---|
| 14 |  | 
|---|
| 15 | MParWrite::MParWrite() | 
|---|
| 16 | { | 
|---|
| 17 | } | 
|---|
| 18 |  | 
|---|
| 19 | Bool_t MParWrite::PreProcess (MParList *pList) | 
|---|
| 20 | { | 
|---|
| 21 | // | 
|---|
| 22 | // remember the pointer to the parameter list fur further usage | 
|---|
| 23 | // | 
|---|
| 24 | pParList = pList; | 
|---|
| 25 |  | 
|---|
| 26 | return kTRUE; | 
|---|
| 27 | } | 
|---|
| 28 |  | 
|---|
| 29 | Bool_t MParWrite::Process() | 
|---|
| 30 | { | 
|---|
| 31 | // | 
|---|
| 32 | //   Write Event | 
|---|
| 33 | // | 
|---|
| 34 |  | 
|---|
| 35 | MParContainer *pCont; | 
|---|
| 36 |  | 
|---|
| 37 | pParList->Reset(); | 
|---|
| 38 | while ((pCont=pParList->Next())) | 
|---|
| 39 | { | 
|---|
| 40 | if (!pCont->IsBuffer()) | 
|---|
| 41 | continue; | 
|---|
| 42 |  | 
|---|
| 43 | MObjBuffer *pBuf = (MObjBuffer*)pCont; | 
|---|
| 44 |  | 
|---|
| 45 | if (pBuf->IsOutput() && pBuf->HasChanged()) | 
|---|
| 46 | pBuf->PutEvent(); | 
|---|
| 47 | } | 
|---|
| 48 |  | 
|---|
| 49 | return kTRUE; | 
|---|
| 50 | } | 
|---|
| 51 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.