G4ModelCmdApplyString< M > Class Template Reference

#include <G4ModelApplyCommandsT.hh>

Inheritance diagram for G4ModelCmdApplyString< M >:

G4VModelCommand< M > G4UImessenger G4ModelCmdAddInterval< M > G4ModelCmdAddIntervalContext< M > G4ModelCmdAddString< M > G4ModelCmdAddValue< M > G4ModelCmdAddValueContext< M > G4ModelCmdSetAuxPtsFillStyle< M > G4ModelCmdSetAuxPtsSize< M > G4ModelCmdSetAuxPtsSizeType< M > G4ModelCmdSetAuxPtsType< M > G4ModelCmdSetStepPtsFillStyle< M > G4ModelCmdSetStepPtsSize< M > G4ModelCmdSetStepPtsSizeType< M > G4ModelCmdSetStepPtsType< M > G4ModelCmdSetString< M >

Public Member Functions

 G4ModelCmdApplyString (M *model, const G4String &placement, const G4String &cmdName)
virtual ~G4ModelCmdApplyString ()
void SetNewValue (G4UIcommand *command, G4String newValue)

Protected Member Functions

virtual void Apply (const G4String &)=0
G4UIcmdWithAStringCommand ()

Detailed Description

template<typename M>
class G4ModelCmdApplyString< M >

Definition at line 510 of file G4ModelApplyCommandsT.hh.


Constructor & Destructor Documentation

template<typename M>
G4ModelCmdApplyString< M >::G4ModelCmdApplyString ( M *  model,
const G4String placement,
const G4String cmdName 
)

Definition at line 534 of file G4ModelApplyCommandsT.hh.

00535   :G4VModelCommand<M>(model, placement)
00536 {
00537   G4String dir = placement+"/"+model->Name()+"/"+cmdName;
00538 
00539   fpCmd = new G4UIcmdWithAString(dir, this);
00540 }

template<typename M>
G4ModelCmdApplyString< M >::~G4ModelCmdApplyString (  )  [virtual]

Definition at line 543 of file G4ModelApplyCommandsT.hh.

00544 {  
00545   delete fpCmd;
00546 }


Member Function Documentation

template<typename M>
virtual void G4ModelCmdApplyString< M >::Apply ( const G4String  )  [protected, pure virtual]

Implemented in G4ModelCmdAddString< M >, G4ModelCmdSetAuxPtsSize< M >, G4ModelCmdSetStepPtsSize< M >, G4ModelCmdSetStepPtsType< M >, G4ModelCmdSetAuxPtsType< M >, G4ModelCmdSetStepPtsSizeType< M >, G4ModelCmdSetAuxPtsSizeType< M >, G4ModelCmdSetStepPtsFillStyle< M >, G4ModelCmdSetAuxPtsFillStyle< M >, G4ModelCmdAddInterval< M >, G4ModelCmdAddValue< M >, G4ModelCmdSetString< M >, G4ModelCmdAddIntervalContext< M >, and G4ModelCmdAddValueContext< M >.

Referenced by G4ModelCmdApplyString< M >::SetNewValue().

template<typename M>
G4UIcmdWithAString* G4ModelCmdApplyString< M >::Command (  )  [inline, protected]

Definition at line 525 of file G4ModelApplyCommandsT.hh.

Referenced by G4ModelCmdAddInterval< M >::G4ModelCmdAddInterval(), G4ModelCmdAddIntervalContext< M >::G4ModelCmdAddIntervalContext(), G4ModelCmdAddString< M >::G4ModelCmdAddString(), G4ModelCmdAddValue< M >::G4ModelCmdAddValue(), G4ModelCmdAddValueContext< M >::G4ModelCmdAddValueContext(), G4ModelCmdSetAuxPtsFillStyle< M >::G4ModelCmdSetAuxPtsFillStyle(), G4ModelCmdSetAuxPtsSize< M >::G4ModelCmdSetAuxPtsSize(), G4ModelCmdSetAuxPtsSizeType< M >::G4ModelCmdSetAuxPtsSizeType(), G4ModelCmdSetAuxPtsType< M >::G4ModelCmdSetAuxPtsType(), G4ModelCmdSetStepPtsFillStyle< M >::G4ModelCmdSetStepPtsFillStyle(), G4ModelCmdSetStepPtsSize< M >::G4ModelCmdSetStepPtsSize(), G4ModelCmdSetStepPtsSizeType< M >::G4ModelCmdSetStepPtsSizeType(), G4ModelCmdSetStepPtsType< M >::G4ModelCmdSetStepPtsType(), and G4ModelCmdSetString< M >::G4ModelCmdSetString().

00525 {return fpCmd;}

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

Reimplemented from G4UImessenger.

Definition at line 549 of file G4ModelApplyCommandsT.hh.

References G4ModelCmdApplyString< M >::Apply(), G4VVisManager::GetConcreteInstance(), and G4VVisManager::NotifyHandlers().

00550 {
00551   Apply(newValue);
00552   G4VVisManager* visManager = G4VVisManager::GetConcreteInstance();
00553   if (visManager) visManager->NotifyHandlers();
00554 }


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