SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
Public Member Functions | Private Attributes | List of all members
UserActionPluginMessenger Class Reference

Messenger for sending macro commands to a UserActionPlugin. More...

#include <UserActionPluginMessenger.hh>

Inheritance diagram for UserActionPluginMessenger:

Public Member Functions

 UserActionPluginMessenger (UserActionPlugin *userPlugin)
 
virtual ~UserActionPluginMessenger ()
 
const std::string & getPath ()
 
UserActionPlugin * getPlugin ()
 
void SetNewValue (G4UIcommand *command, G4String newValue)
 

Private Attributes

G4UIdirectory * pluginDir_
 
UserActionPlugin * userPlugin_
 
G4UIcommand * verboseCmd_
 

Detailed Description

Messenger for sending macro commands to a UserActionPlugin.

Note
By default, this class creates a directory for the plugin and provides a command for setting of the verbose level. Users can override this class to provide additional commands for their specific plugins.

Definition at line 29 of file UserActionPluginMessenger.hh.

Constructor & Destructor Documentation

◆ UserActionPluginMessenger()

◆ ~UserActionPluginMessenger()

virtual ~UserActionPluginMessenger ( )
inlinevirtual

Member Function Documentation

◆ getPath()

const std::string& getPath ( )
inline

Get the command path (plugin's macro directory).

Returns
The command path.

Definition at line 58 of file UserActionPluginMessenger.hh.

References UserActionPluginMessenger::pluginDir_.

Referenced by UserActionPluginMessenger::UserActionPluginMessenger().

◆ getPlugin()

UserActionPlugin* getPlugin ( )
inline

Get the associated UserActionPlugin.

Returns
The associated UserActionPlugin.

Definition at line 66 of file UserActionPluginMessenger.hh.

References UserActionPluginMessenger::userPlugin_.

◆ SetNewValue()

void SetNewValue ( G4UIcommand *  command,
G4String  newValue 
)

Process the macro command.

Parameters
[in]commandThe macro command.
[in]newValueThe argument values.

Definition at line 18 of file UserActionPluginMessenger.cc.

References LOG::endl, UserActionPlugin::getName(), UserActionPlugin::getVerboseLevel(), UserActionPlugin::setVerboseLevel(), UserActionPluginMessenger::userPlugin_, and UserActionPluginMessenger::verboseCmd_.

Member Data Documentation

◆ pluginDir_

G4UIdirectory* pluginDir_
private

◆ userPlugin_

UserActionPlugin* userPlugin_
private

The associated UserActionPligin.

Definition at line 75 of file UserActionPluginMessenger.hh.

Referenced by UserActionPluginMessenger::getPlugin(), and UserActionPluginMessenger::SetNewValue().

◆ verboseCmd_

G4UIcommand* verboseCmd_
private

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