OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
MatchEnd.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: MatchEnd.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: MatchEnd
10 // The class for the OPAL ENDMATCH command.
11 //
12 // ------------------------------------------------------------------------
13 //
14 // $Date: 2000/03/27 09:33:44 $
15 // $Author: Andreas Adelmann $
16 //
17 // ------------------------------------------------------------------------
18 
19 #include "Match/MatchEnd.h"
20 #include "Match/Match.h"
21 #include "Match/MatchParser.h"
22 #include "Match/MatchState.h"
23 
24 
25 // Class MatchEnd
26 // ------------------------------------------------------------------------
27 
29  Action(0, "ENDMATCH",
30  "The \"ENDMATCH\" sub-command stops Matching.")
31 {}
32 
33 
34 MatchEnd::MatchEnd(const std::string &name, MatchEnd *parent):
35  Action(name, parent)
36 {}
37 
38 
40 {}
41 
42 
43 MatchEnd *MatchEnd::clone(const std::string &name) {
44  return new MatchEnd(name, this);
45 }
46 
47 
49  Match::block->print("ENDMATCH", TERMINATED);
51 }
The ENDMATCH command.
Definition: MatchEnd.h:30
The base class for all OPAL actions.
Definition: Action.h:30
MatchEnd()
Exemplar constructor.
Definition: MatchEnd.cpp:28
static Match * block
The block of match data.
Definition: Match.h:100
void stop() const
Set stop flag.
Definition: OpalParser.cpp:637
virtual MatchEnd * clone(const std::string &name)
Make clone.
Definition: MatchEnd.cpp:43
void print(const char *method, MatchState state)
Print the results of minimisation.
Definition: Match.cpp:145
MatchParser parser
The parser used during for matching.
Definition: Match.h:97
virtual ~MatchEnd()
Definition: MatchEnd.cpp:39
virtual void execute()
Execute the command.
Definition: MatchEnd.cpp:48
const std::string name