16 #include "Riostream.h"
19 #include "TObjArray.h"
21 #include "TGo4LockGuard.h"
26 TNamed(name,
"This is a TGo4CommandProtoList")
28 GO4TRACE((14,
"TGo4CommandProtoList::TGo4CommandProtoList(const char*) ctor",__LINE__, __FILE__));
37 GO4TRACE((14,
"TGo4CommandProtoList::~TGo4CommandProtoList() dtor",__LINE__, __FILE__));
48 GO4TRACE((12,
"TGo4CommandProtoList::ShowCommands()",__LINE__, __FILE__));
54 std::cout <<
" Name: \t| Description:"<<std::endl;
56 std::cout <<
" "<< com->GetName()<<
"\t| "<<com->
What()<<std::endl;
61 GO4TRACE((12,
"TGo4CommandProtoList::MakeCommand(const char*)",__LINE__, __FILE__));
67 GO4TRACE((10,
"TGo4CommandProtoList::RemoveCommand(TGo4Command*) command not found in array",__LINE__, __FILE__));
70 GO4TRACE((10,
"TGo4CommandProtoList::RemoveCommand(TGo4Command*) cloning command",__LINE__, __FILE__));
80 if(remcon==0)
return 0;
90 GO4TRACE((12,
"TGo4CommandProtoList::RemoveCommand(const char*)",__LINE__, __FILE__));
96 GO4TRACE((10,
"TGo4CommandProtoList::RemoveCommand(TGo4Command*) command not found in array",__LINE__, __FILE__));
99 GO4TRACE((10,
"TGo4CommandProtoList::RemoveCommand(TGo4Command*) removing command from array",__LINE__, __FILE__));
110 GO4TRACE((12,
"TGo4CommandProtoList::AddCommand(TGo4Command*)",__LINE__, __FILE__));
114 GO4TRACE((10,
"TGo4CommandProtoList::AddCommand(TGo4Command*) Adding new go4 commandto array",__LINE__, __FILE__));
118 GO4TRACE((10,
"TGo4CommandProtoList::AddCommand(TGo4Command*) command was already in array",__LINE__, __FILE__));
128 while ( (com=dynamic_cast<TGo4Command*>(iter())) !=0)
130 std::cout <<
"CommandProtoList "<< GetName() <<
"used operator += for adding list " << two.GetName() << std::endl;
virtual void Set(TGo4RemoteCommand *remcon)
virtual void ShowCommands()
const char * GetCommandName() const
TObjArray * fxCommandList
void RemoveCommand(const char *name)
TGo4CommandProtoList & operator+=(const TGo4CommandProtoList &two)
virtual ~TGo4CommandProtoList()
void AddCommand(TGo4Command *com)
TGo4Command * MakeCommand(const char *name)
const char * What() const
static void Debug(const char *text,...)