/[PAMELA software]/PamCut/PamCutBase/PamCutBase.cpp
ViewVC logotype

Diff of /PamCut/PamCutBase/PamCutBase.cpp

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

revision 1.2 by pam-fi, Fri May 29 10:10:28 2009 UTC revision 1.3 by pam-fi, Wed Jun 17 12:58:00 2009 UTC
# Line 122  PamCut *PamCutCollection::GetCut(unsigne Line 122  PamCut *PamCutCollection::GetCut(unsigne
122      return _cuts[iCut];      return _cuts[iCut];
123  }  }
124    
125    PamCut *PamCutCollection::GetCut(const char *cutName) {
126      if (_cuts.size() == 0)
127        return NULL;
128      for (unsigned int i = 0; i < _cuts.size(); i++){
129        if (strcmp(_cuts[i]->GetName(), cutName) == 0)
130          return _cuts[i];
131      }
132    
133      return NULL;
134    }
135    
136  unsigned int PamCutCollection::GetSize() {  unsigned int PamCutCollection::GetSize() {
137    return (unsigned int) _cuts.size();    return (unsigned int) _cuts.size();
138    

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

  ViewVC Help
Powered by ViewVC 1.1.23