GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGo4CommandProtoList Class Reference

#include <TGo4CommandProtoList.h>

+ Inheritance diagram for TGo4CommandProtoList:

Public Member Functions

 TGo4CommandProtoList (const char *name)
 
virtual ~TGo4CommandProtoList ()
 
virtual void ShowCommands ()
 
TGo4CommandMakeCommand (const char *name)
 
TGo4CommandMakeCommand (TGo4RemoteCommand *remcon)
 
void RemoveCommand (const char *name)
 
void AddCommand (TGo4Command *com)
 
TGo4CommandProtoListoperator+= (const TGo4CommandProtoList &two)
 

Private Member Functions

 TGo4CommandProtoList ()
 

Private Attributes

TObjArray * fxCommandList {nullptr}
 
TMutex * fxListMutex {nullptr}
 

Detailed Description

Definition at line 29 of file TGo4CommandProtoList.h.

Constructor & Destructor Documentation

◆ TGo4CommandProtoList() [1/2]

TGo4CommandProtoList::TGo4CommandProtoList ( const char *  name)

Definition at line 25 of file TGo4CommandProtoList.cxx.

References AddCommand(), fxCommandList, fxListMutex, and GO4TRACE.

◆ ~TGo4CommandProtoList()

TGo4CommandProtoList::~TGo4CommandProtoList ( )
virtual

Definition at line 35 of file TGo4CommandProtoList.cxx.

References fxCommandList, fxListMutex, and GO4TRACE.

◆ TGo4CommandProtoList() [2/2]

TGo4CommandProtoList::TGo4CommandProtoList ( )
private

Member Function Documentation

◆ AddCommand()

void TGo4CommandProtoList::AddCommand ( TGo4Command com)

◆ MakeCommand() [1/2]

TGo4Command * TGo4CommandProtoList::MakeCommand ( const char *  name)

Creates a Clone of the specified command by name

Definition at line 58 of file TGo4CommandProtoList.cxx.

References fxCommandList, fxListMutex, and GO4TRACE.

Referenced by TGo4CommandInvoker::ExecuteFromRemote(), MakeCommand(), and TGo4Task::MakeCommand().

◆ MakeCommand() [2/2]

TGo4Command * TGo4CommandProtoList::MakeCommand ( TGo4RemoteCommand remcon)

Creates command by specifications in remote command

Definition at line 76 of file TGo4CommandProtoList.cxx.

References TGo4RemoteCommand::GetCommandName(), MakeCommand(), and TGo4Command::Set().

◆ operator+=()

TGo4CommandProtoList & TGo4CommandProtoList::operator+= ( const TGo4CommandProtoList two)

Adds second command list to this

Definition at line 120 of file TGo4CommandProtoList.cxx.

References AddCommand(), fxCommandList, and fxListMutex.

◆ RemoveCommand()

void TGo4CommandProtoList::RemoveCommand ( const char *  name)

removes command from list

Definition at line 86 of file TGo4CommandProtoList.cxx.

References fxCommandList, fxListMutex, and GO4TRACE.

◆ ShowCommands()

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, and GO4TRACE.

Member Data Documentation

◆ fxCommandList

TObjArray* TGo4CommandProtoList::fxCommandList {nullptr}
private

◆ fxListMutex

TMutex* TGo4CommandProtoList::fxListMutex {nullptr}
private

The documentation for this class was generated from the following files: