OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Value.h
Go to the documentation of this file.
1//
2// Class Value
3// The class for OPAL VALUE 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_Value_HH
19#define OPAL_Value_HH
20
22
23
24class Value: public Action {
25
26public:
27
29 Value();
30
31 virtual ~Value();
32
34 virtual Value* clone(const std::string& name);
35
37 virtual void execute();
38
40 virtual void parse(Statement&);
41
42private:
43
44 // Not implemented.
45 Value(const Value&);
46 void operator=(const Value&);
47
48 // Clone constructor.
49 Value(const std::string& name, Value* parent);
50};
51
52#endif // OPAL_Value_HH
const std::string name
The base class for all OPAL actions.
Definition: Action.h:30
Definition: Value.h:24
virtual ~Value()
Definition: Value.cpp:46
void operator=(const Value &)
virtual void parse(Statement &)
Parse command (special for one-attribute command).
Definition: Value.cpp:71
virtual void execute()
Execute the command.
Definition: Value.cpp:55
Value(const Value &)
Value()
Exemplar constructor.
Definition: Value.cpp:30
virtual Value * clone(const std::string &name)
Make clone.
Definition: Value.cpp:50
Interface for statements.
Definition: Statement.h:38