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