OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
ConstraintCmd.h
Go to the documentation of this file.
1 #ifndef OPAL_ConstraintCmd_HH
2 #define OPAL_ConstraintCmd_HH 1
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: ConstraintCmd.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.2 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: ConstraintCmd
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2001/08/13 15:10:01 $
17 // $Author: jowett $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbstractObjects/Action.h"
22 #include <iosfwd>
23 //#include <iostream>
24 
25 // Class ConstraintCmd
26 // ------------------------------------------------------------------------
28 
29 class ConstraintCmd: public Action {
30 
31 public:
32 
34  ConstraintCmd();
35 
36  virtual ~ConstraintCmd();
37 
39  virtual ConstraintCmd *clone(const std::string &name);
40 
42  virtual void execute();
43 
45  virtual void parse(Statement &);
46 
48  virtual void print(std::ostream &) const;
49 
51  virtual void printHelp(std::ostream &) const;
52 
53 private:
54 
55  // Not implemented.
57  void operator=(const ConstraintCmd &);
58 
59  // Clone constructor.
60  ConstraintCmd(const std::string &name, ConstraintCmd *parent);
61 
62  // The value of the relational operator:
63  // 0 = "==", 1 = ">", 2 = "<".
64  int relation;
65 };
66 
67 #endif // OPAL_ConstraintCmd_HH
virtual ~ConstraintCmd()
virtual void print(std::ostream &) const
Print the command.
The base class for all OPAL actions.
Definition: Action.h:30
virtual ConstraintCmd * clone(const std::string &name)
Make clone.
virtual void parse(Statement &)
Parse the command.
Interface for statements.
Definition: Statement.h:38
ConstraintCmd()
Exemplar constructor.
The CONSTRAINT command.
Definition: ConstraintCmd.h:29
virtual void printHelp(std::ostream &) const
Print help for the command.
const std::string name
virtual void execute()
Execute the command.
void operator=(const ConstraintCmd &)