OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
EditParser.h
Go to the documentation of this file.
1 #ifndef OPAL_EditParser_HH
2 #define OPAL_EditParser_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: EditParser.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: EditParser
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:38 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "OpalParser/OpalParser.h"
23 
24 class Statement;
25 
26 
27 // Class EditParser
28 // ------------------------------------------------------------------------
30 // As long as control remains in this class, OPAL recognises only the
31 // commands allowed during sequence editing. Thus this parser has its own
32 // command directory with a find() method which is used to find commands.
33 
34 class EditParser: public OpalParser {
35 
36 public:
37 
38  EditParser();
39  virtual ~EditParser();
40 
41 protected:
42 
44  virtual Object *find(const std::string &) const;
45 
47  virtual void parse(Statement &) const;
48 
50  // Special version for INSTALL command.
51  virtual void parseInstall(Statement &) const;
52 
53 private:
54 
55  // Not implemented.
56  EditParser(const EditParser &);
57  void operator=(const EditParser &);
58 
59  // The sub-command directory.
61 };
62 
63 #endif // OPAL_EditParser_HH
virtual ~EditParser()
Definition: EditParser.cpp:54
A map of string versus pointer to Object.
Definition: Directory.h:38
The default parser for OPAL-9.
Definition: OpalParser.h:44
Interface for statements.
Definition: Statement.h:38
void operator=(const EditParser &)
virtual Object * find(const std::string &) const
Find object by name in the sequence editor command directory.
Definition: EditParser.cpp:58
virtual void parse(Statement &) const
Parse and execute current statement.
Definition: EditParser.cpp:63
The base class for all OPAL objects.
Definition: Object.h:48
Directory editDirectory
Definition: EditParser.h:60
virtual void parseInstall(Statement &) const
Parse definition.
Definition: EditParser.cpp:90
The parser for the OPAL sequence editor.
Definition: EditParser.h:34