OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
TrackParser.h
Go to the documentation of this file.
1 #ifndef OPAL_TrackParser_HH
2 #define OPAL_TrackParser_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: TrackParser.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: TrackParser
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:47 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "OpalParser/OpalParser.h"
23 
24 
25 // Class TrackParser
26 // ------------------------------------------------------------------------
28 // As long as control remains in this class, OPAL recognizes only the
29 // commands allowed in tracking mode. Thus this parser has its own
30 // command directory with a find() method which is used to find commands.
31 
32 class TrackParser: public OpalParser {
33 
34 public:
35 
36  TrackParser();
37  virtual ~TrackParser();
38 
39 protected:
40 
42  virtual Object *find(const std::string &) const;
43 
44 private:
45 
46  // Not implemented.
47  TrackParser(const TrackParser &);
48  void operator=(const TrackParser &);
49 
50  // The sub-command directory.
52 };
53 
54 #endif // OPAL_TrackParser_HH
A map of string versus pointer to Object.
Definition: Directory.h:38
virtual Object * find(const std::string &) const
Find object by name in the track command directory.
Definition: TrackParser.cpp:44
The default parser for OPAL-9.
Definition: OpalParser.h:44
The parser class used by the OPAL tracking module.
Definition: TrackParser.h:32
Directory trackDirectory
Definition: TrackParser.h:51
virtual ~TrackParser()
Definition: TrackParser.cpp:40
The base class for all OPAL objects.
Definition: Object.h:48
void operator=(const TrackParser &)