Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VisCommandListManagerList< Manager > Class Template Reference

#include <G4VisCommandsListManager.hh>

+ Inheritance diagram for G4VisCommandListManagerList< Manager >:

Public Member Functions

 G4VisCommandListManagerList (Manager *, const G4String &placement)
 
virtual ~G4VisCommandListManagerList ()
 
G4String GetCurrentValue (G4UIcommand *)
 
void SetNewValue (G4UIcommand *command, G4String newValue)
 
G4String Placement () const
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()=default
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool CommandsShouldBeInMaster () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String LtoS (G4long l)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (const G4String &s)
 
G4long StoL (const G4String &s)
 
G4double StoD (const G4String &s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Detailed Description

template<typename Manager>
class G4VisCommandListManagerList< Manager >

Definition at line 43 of file G4VisCommandsListManager.hh.

Constructor & Destructor Documentation

◆ G4VisCommandListManagerList()

template<typename Manager >
G4VisCommandListManagerList< Manager >::G4VisCommandListManagerList ( Manager * manager,
const G4String & placement )

Definition at line 69 of file G4VisCommandsListManager.hh.

70 :fpManager(manager)
71 ,fPlacement(placement)
72{
73 G4String command = Placement()+"/list";
74
75 fpCommand = new G4UIcmdWithAString(command, this);
76 fpCommand->SetGuidance("List objects registered with list manager");
77 fpCommand->SetParameterName("name", true);
78}
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)

◆ ~G4VisCommandListManagerList()

template<typename Manager >
G4VisCommandListManagerList< Manager >::~G4VisCommandListManagerList ( )
virtual

Definition at line 81 of file G4VisCommandsListManager.hh.

82{
83 delete fpCommand;
84}

Member Function Documentation

◆ GetCurrentValue()

template<typename Manager >
G4String G4VisCommandListManagerList< Manager >::GetCurrentValue ( G4UIcommand * )
virtual

Reimplemented from G4UImessenger.

Definition at line 95 of file G4VisCommandsListManager.hh.

96{
97 return "";
98}

◆ Placement()

template<typename Manager >
G4String G4VisCommandListManagerList< Manager >::Placement ( ) const

Definition at line 88 of file G4VisCommandsListManager.hh.

89{
90 return fPlacement;
91}

Referenced by G4VisCommandListManagerList< Manager >::G4VisCommandListManagerList().

◆ SetNewValue()

template<typename Manager >
void G4VisCommandListManagerList< Manager >::SetNewValue ( G4UIcommand * command,
G4String newValue )
virtual

Reimplemented from G4UImessenger.

Definition at line 101 of file G4VisCommandsListManager.hh.

102{
103 G4cout<<"Listing models available in "<<Placement()<<G4endl;
104
105 assert (0 != fpManager);
106 fpManager->Print(G4cout, name);
107}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout

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