/[PAMELA software]/PamCut/Collections/SmartCollection/SmartCollection.cpp
ViewVC logotype

Diff of /PamCut/Collections/SmartCollection/SmartCollection.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Wed May 27 13:30:09 2009 UTC revision 1.2 by pam-fi, Fri May 29 10:10:31 2009 UTC
# Line 22  CollectionAction *SmartCollection::GetAc Line 22  CollectionAction *SmartCollection::GetAc
22      return _actions[iAction];      return _actions[iAction];
23  }  }
24    
25  void SmartCollection::Setup(PamLevel2 *events){  void SmartCollection::Setup(PamLevel2 *events) {
26    PamCutCollection::Setup(events);    PamCutCollection::Setup(events);
27    
28    for (unsigned int i = 0; i < GetSize(); i++){    for (unsigned int i = 0; i < _actions.size(); i++) {
29      _actions[i]->Setup(events);      _actions[i]->Setup(events);
30    }    }
31  }  }
32    
33  void SmartCollection::Finalize(){  void SmartCollection::Finalize() {
34    PamCutCollection::Finalize();    PamCutCollection::Finalize();
35    
36    for (unsigned int i = 0; i < GetSize(); i++){    for (unsigned int i = 0; i < _actions.size(); i++) {
37      _actions[i]->Finalize();      _actions[i]->Finalize();
38    }    }
39  }  }
40    
41  void SmartCollection::OnGood(PamLevel2 *event){  void SmartCollection::OnGood(PamLevel2 *event) {
42    PamCutCollection::OnGood(event);    PamCutCollection::OnGood(event);
43    
44    for (unsigned int i = 0; i < GetSize(); i++){    for (unsigned int i = 0; i < _actions.size(); i++) {
45      _actions[i]->OnGood(event);      _actions[i]->OnGood(event);
46    }    }
47  }  }
48    
49  void SmartCollection::OnBad(PamLevel2 *event, int selectionResult){  void SmartCollection::OnBad(PamLevel2 *event, int selectionResult) {
50    PamCutCollection::OnBad(event, selectionResult);    PamCutCollection::OnBad(event, selectionResult);
51    
52    for (unsigned int i = 0; i < GetSize(); i++){    for (unsigned int i = 0; i < _actions.size(); i++) {
53      _actions[i]->OnBad(event, selectionResult);      _actions[i]->OnBad(event, selectionResult);
54    }    }
55  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23