OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Call.h
Go to the documentation of this file.
1//
2// Class Call
3// The class for OPAL CALL command.
4//
5// Copyright (c) 2000 - 2021, Paul Scherrer Institut, Villigen PSI, Switzerland
6// All rights reserved
7//
8// This file is part of OPAL.
9//
10// OPAL is free software: you can redistribute it and/or modify
11// it under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// You should have received a copy of the GNU General Public License
16// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17//
18#ifndef OPAL_Call_HH
19#define OPAL_Call_HH
20
22
23class Call : public Action {
24public:
26 Call();
27
28 virtual ~Call();
29
31 virtual Call* clone(const std::string& name);
32
34 virtual void execute();
35
37 virtual void parse(Statement&);
38
39private:
40 // Not implemented.
41 Call(const Call&);
42 void operator=(const Call&);
43
44 // Clone constructor.
45 Call(const std::string& name, Call* parent);
46};
47
48#endif // OPAL_Call_HH
The base class for all OPAL actions.
Definition Action.h:29
Definition Call.h:23
Call(const Call &)
Call()
Exemplar constructor.
Definition Call.cpp:32
virtual void parse(Statement &)
Parse command (special for one-attribute command).
Definition Call.cpp:57
virtual void execute()
Execute the command.
Definition Call.cpp:47
virtual Call * clone(const std::string &name)
Make clone.
Definition Call.cpp:45
virtual ~Call()
Definition Call.cpp:43
void operator=(const Call &)
Interface for statements.
Definition Statement.h:37