OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
TableTester.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: TableTester.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: TableTester
10 // Ancillary class for testing for dependency of a Table on a name.
11 //
12 // ------------------------------------------------------------------------
13 //
14 // $Date: 2000/03/27 09:33:45 $
15 // $Author: Andreas Adelmann $
16 //
17 // ------------------------------------------------------------------------
18 
19 #include "Tables/TableTester.h"
21 
22 
23 // Class TableTester
24 // ------------------------------------------------------------------------
25 
26 TableTester::TableTester(const Beamline &beamline, const std::string &name):
27  DefaultVisitor(beamline, false, false), itsName(name)
28 {}
29 
30 
32 {}
33 
34 
36  if(elem.getName() == itsName) throw 0;
37 }
Interface for basic beam line object.
Definition: ElementBase.h:128
virtual void applyDefault(const ElementBase &)
Apply default operation.
Definition: TableTester.cpp:35
virtual const std::string & getName() const
Get element name.
Definition: ElementBase.cpp:95
Default algorithms.
An abstract sequence of beam line components.
Definition: Beamline.h:37
const std::string itsName
Definition: TableTester.h:53
const std::string name