OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
List.h
Go to the documentation of this file.
1 #ifndef OPAL_List_HH
2 #define OPAL_List_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: List.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: List
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:45 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbstractObjects/Action.h"
23 #include <iosfwd>
24 
25 class Table;
26 
27 
28 // Class List
29 // ------------------------------------------------------------------------
31 
32 class List: public Action {
33 
34 public:
35 
37  List();
38 
39  virtual ~List();
40 
42  virtual List *clone(const std::string &name);
43 
45  virtual void execute();
46 
47 private:
48 
49  // Not implemented.
50  List(const List &);
51  void operator=(const List &);
52 
53  // Clone constructor.
54  List(const std::string &name, List *parent);
55 
56  // Do the listing.
57  void list(std::ostream &, Table *);
58 };
59 
60 #endif // OPAL_List_HH
const std::string name
The base class for all OPAL actions.
Definition: Action.h:30
The base class for all OPAL tables.
Definition: Table.h:42
The LIST command.
Definition: List.h:32
virtual List * clone(const std::string &name)
Make clone.
Definition: List.cpp:75
void operator=(const List &)
List(const List &)
List()
Exemplar constructor.
Definition: List.cpp:50
virtual ~List()
Definition: List.cpp:71
void list(std::ostream &, Table *)
Definition: List.cpp:106
virtual void execute()
Execute the command.
Definition: List.cpp:80