G4VisCommandListManagerList< Manager > Class Template Reference

#include <G4VisCommandsListManager.hh>

Inheritance diagram for G4VisCommandListManagerList< Manager >:

G4UImessenger

Public Member Functions

 G4VisCommandListManagerList (Manager *, const G4String &placement)
virtual ~G4VisCommandListManagerList ()
G4String GetCurrentValue (G4UIcommand *)
void SetNewValue (G4UIcommand *command, G4String newValue)
G4String Placement () const

Detailed Description

template<typename Manager>
class G4VisCommandListManagerList< Manager >

Definition at line 44 of file G4VisCommandsListManager.hh.


Constructor & Destructor Documentation

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

Definition at line 70 of file G4VisCommandsListManager.hh.

References G4VisCommandListManagerList< Manager >::Placement(), G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().

00071   :fpManager(manager)
00072   ,fPlacement(placement)
00073 {  
00074   G4String command = Placement()+"/list";
00075   
00076   fpCommand = new G4UIcmdWithAString(command, this);      
00077   fpCommand->SetGuidance("List objects registered with list manager");
00078   fpCommand->SetParameterName("name", true);       
00079 }

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

Definition at line 82 of file G4VisCommandsListManager.hh.

00083 {
00084   delete fpCommand;
00085 }


Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 96 of file G4VisCommandsListManager.hh.

00097 {
00098   return "";
00099 }

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

Definition at line 89 of file G4VisCommandsListManager.hh.

Referenced by G4VisCommandListManagerList< Manager >::G4VisCommandListManagerList(), and G4VisCommandListManagerList< Manager >::SetNewValue().

00090 {
00091   return fPlacement;
00092 }

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

Reimplemented from G4UImessenger.

Definition at line 102 of file G4VisCommandsListManager.hh.

References G4cout, G4endl, and G4VisCommandListManagerList< Manager >::Placement().

00103 {
00104   G4cout<<"Listing models available in "<<Placement()<<G4endl;
00105 
00106   assert (0 != fpManager);
00107   fpManager->Print(G4cout, name);
00108 }    


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:53:45 2013 for Geant4 by  doxygen 1.4.7