CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkGeomTrajVisitor.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkGeomTrajVisitor.h,v 1.1.1.1 2005/07/18 05:51:56 codeman Exp $
4//
5// Description:
6// Part of Visitor pattern for TrkGeomTraj class hierarchy. This is
7// the base class for any Visitor that will visit a TrkGeomTraj. As
8// new GeomTraj's are introduced, they must have an appropriate
9// visitXXXX function added here and in all derived Visitors.
10//
11// Environment:
12// Software developed for the BaBar Detector at the SLAC B-Factory.
13//
14// Author(s): Steve Schaffner
15//
16//------------------------------------------------------------------------
17
18#ifndef TRKGEOMTRAJVISITOR_H
19#define TRKGEOMTRAJVISITOR_H
20
21class TrkLineTraj;
22class TrkPieceLineTraj;
23//SKIP class TrkParabolaTraj;
24class BesHelixTraj;
25
26// Class interface //
28
29public:
31 virtual ~TrkGeomTrajVisitor();
32
33 virtual void visitLine(const TrkLineTraj*) = 0;
34 // virtual void visitParabola(const TrkParabolaTraj*) = 0;
35 virtual void visitPieceLine(const TrkPieceLineTraj*) = 0;
36 virtual void visitHelix(const BesHelixTraj*) = 0;
37
38private:
39
40 // Preempt
41 TrkGeomTrajVisitor& operator= (const TrkGeomTrajVisitor&);
43};
44
45#endif
46
47
48
49
50
51
52
virtual void visitHelix(const BesHelixTraj *)=0
virtual void visitPieceLine(const TrkPieceLineTraj *)=0
virtual void visitLine(const TrkLineTraj *)=0