G4ModelCmdActive< M > Class Template Reference

#include <G4ModelCommandsT.hh>

Inheritance diagram for G4ModelCmdActive< M >:

G4ModelCmdApplyBool< M > G4VModelCommand< M > G4UImessenger

Public Member Functions

 G4ModelCmdActive (M *model, const G4String &placement, const G4String &cmdName="active")
virtual ~G4ModelCmdActive ()

Protected Member Functions

virtual void Apply (const G4bool &newValue)

Detailed Description

template<typename M>
class G4ModelCmdActive< M >

Definition at line 157 of file G4ModelCommandsT.hh.


Constructor & Destructor Documentation

template<typename M>
G4ModelCmdActive< M >::G4ModelCmdActive ( M *  model,
const G4String placement,
const G4String cmdName = "active" 
) [inline]

Definition at line 161 of file G4ModelCommandsT.hh.

References G4ModelCmdApplyBool< M >::Command(), and G4UIcommand::SetGuidance().

00163     :G4ModelCmdApplyBool<M>(model, placement, cmdName)
00164   {
00165     G4ModelCmdApplyBool<M>::Command()->SetGuidance("Active command");
00166   }

template<typename M>
virtual G4ModelCmdActive< M >::~G4ModelCmdActive (  )  [inline, virtual]

Definition at line 168 of file G4ModelCommandsT.hh.

00168 {}


Member Function Documentation

template<typename M>
virtual void G4ModelCmdActive< M >::Apply ( const G4bool newValue  )  [inline, protected, virtual]

Implements G4ModelCmdApplyBool< M >.

Definition at line 172 of file G4ModelCommandsT.hh.

References G4VModelCommand< T >::Model().

00172                                              {
00173     G4VModelCommand<M>::Model()->SetActive(newValue);
00174   }


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