GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4CommandProtoList.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4COMMANDPROTOLIST_H
15#define TGO4COMMANDPROTOLIST_H
16
20
21#include "TNamed.h"
22
23class TMutex;
24class TObjArray;
25
26class TGo4Command;
28
29class TGo4CommandProtoList : public TNamed {
30 public:
31
32 TGo4CommandProtoList(const char *name);
33
34 virtual ~TGo4CommandProtoList();
35
37 virtual void ShowCommands();
38
40 TGo4Command *MakeCommand(const char *name);
41
44
46 void RemoveCommand(const char *name);
47
49 void AddCommand(TGo4Command *com);
50
53
54 private:
56
59 TObjArray *fxCommandList{nullptr};
60
63 TMutex *fxListMutex{nullptr};
64
65 ClassDefOverride(TGo4CommandProtoList,1)
66};
67
68#endif //TGO4COMMANDPROTOLIST_H
TGo4CommandProtoList & operator+=(const TGo4CommandProtoList &two)
Adds second command list to this.
void AddCommand(TGo4Command *com)
Adds a Command to the list.
TMutex * fxListMutex
aggregation 1
TGo4Command * MakeCommand(const char *name)
Creates a Clone of the specified command by name.
virtual void ShowCommands()
Display all commands in list by name and description.
void RemoveCommand(const char *name)
removes command from list
TGo4CommandProtoList(const char *name)
TObjArray * fxCommandList
aggregation 1
This is the Go4 Abstract Command Class; part of the Base command pattern.
Definition TGo4Command.h:35
This command is a container for commands to be send from master to slave via inter-process transport.