#include <TGo4CommandProtoList.h>
Public Member Functions | |
TGo4CommandProtoList (const char *name) | |
virtual | ~TGo4CommandProtoList () |
virtual void | ShowCommands () |
TGo4Command * | MakeCommand (const char *name) |
TGo4Command * | MakeCommand (TGo4RemoteCommand *remcon) |
void | RemoveCommand (const char *name) |
void | AddCommand (TGo4Command *com) |
TGo4CommandProtoList & | operator+= (const TGo4CommandProtoList &two) |
Private Member Functions | |
TGo4CommandProtoList () | |
Private Attributes | |
TObjArray * | fxCommandList |
TMutex * | fxListMutex |
Definition at line 29 of file TGo4CommandProtoList.h.
TGo4CommandProtoList::TGo4CommandProtoList | ( | const char * | name | ) |
Definition at line 25 of file TGo4CommandProtoList.cxx.
References AddCommand(), fxCommandList, fxListMutex, and GO4TRACE.
TGo4CommandProtoList::~TGo4CommandProtoList | ( | ) | [virtual] |
Definition at line 35 of file TGo4CommandProtoList.cxx.
References fxCommandList, fxListMutex, and GO4TRACE.
TGo4CommandProtoList::TGo4CommandProtoList | ( | ) | [private] |
void TGo4CommandProtoList::AddCommand | ( | TGo4Command * | com | ) |
Adds a Command to the list
Definition at line 108 of file TGo4CommandProtoList.cxx.
References fxCommandList, fxListMutex, and GO4TRACE.
Referenced by TGo4Task::AddUserCommand(), operator+=(), TGo4AnalysisCommandList::TGo4AnalysisCommandList(), TGo4CommandProtoList(), TGo4ExampleCommandList::TGo4ExampleCommandList(), and TGo4TaskHandlerCommandList::TGo4TaskHandlerCommandList().
TGo4Command * TGo4CommandProtoList::MakeCommand | ( | const char * | name | ) |
Creates a Clone of the specified command by name
Definition at line 59 of file TGo4CommandProtoList.cxx.
References fxCommandList, fxListMutex, and GO4TRACE.
Referenced by TGo4CommandInvoker::ExecuteFromRemote(), TGo4Task::MakeCommand(), and MakeCommand().
TGo4Command * TGo4CommandProtoList::MakeCommand | ( | TGo4RemoteCommand * | remcon | ) |
Creates command by specifications in remote command
Definition at line 78 of file TGo4CommandProtoList.cxx.
References TGo4RemoteCommand::GetCommandName(), MakeCommand(), and TGo4Command::Set().
TGo4CommandProtoList & TGo4CommandProtoList::operator+= | ( | const TGo4CommandProtoList & | two | ) |
Adds second command list to this
Definition at line 122 of file TGo4CommandProtoList.cxx.
References AddCommand(), fxCommandList, and fxListMutex.
void TGo4CommandProtoList::RemoveCommand | ( | const char * | name | ) |
removes command from list
Definition at line 88 of file TGo4CommandProtoList.cxx.
References fxCommandList, fxListMutex, and GO4TRACE.
void TGo4CommandProtoList::ShowCommands | ( | ) | [virtual] |
Display all commands in list by name and description
Definition at line 46 of file TGo4CommandProtoList.cxx.
References TGo4Log::Debug(), fxCommandList, fxListMutex, GO4TRACE, and TGo4Command::What().
TObjArray* TGo4CommandProtoList::fxCommandList [private] |
Definition at line 59 of file TGo4CommandProtoList.h.
Referenced by AddCommand(), MakeCommand(), operator+=(), RemoveCommand(), ShowCommands(), TGo4CommandProtoList(), and ~TGo4CommandProtoList().
TMutex* TGo4CommandProtoList::fxListMutex [private] |
Definition at line 63 of file TGo4CommandProtoList.h.
Referenced by AddCommand(), MakeCommand(), operator+=(), RemoveCommand(), ShowCommands(), TGo4CommandProtoList(), and ~TGo4CommandProtoList().