Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4VisCommandManagerMode< Manager > Class Template Reference

#include <G4VisCommandsListManager.hh>

Inheritance diagram for G4VisCommandManagerMode< Manager >:
G4UImessenger

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (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
 
G4String baseDirName
 

Detailed Description

template<typename Manager>
class G4VisCommandManagerMode< Manager >

Definition at line 168 of file G4VisCommandsListManager.hh.

Constructor & Destructor Documentation

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

Definition at line 188 of file G4VisCommandsListManager.hh.

References G4UIcmdWithAString::SetCandidates(), G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().

189  :fpManager(manager)
190  ,fPlacement(placement)
191 {
192  G4String command = fPlacement+"/mode";
193 
194  fpCommand = new G4UIcmdWithAString(command, this);
195  fpCommand->SetGuidance("Set mode of operation");
196  fpCommand->SetParameterName("mode", false);
197  fpCommand->SetCandidates("soft hard");
198 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void SetCandidates(const char *candidateList)
template<typename Manager >
G4VisCommandManagerMode< Manager >::~G4VisCommandManagerMode ( )
virtual

Definition at line 201 of file G4VisCommandsListManager.hh.

202 {
203  delete fpCommand;
204 }

Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 208 of file G4VisCommandsListManager.hh.

209 {
210  return "";
211 }
template<typename Manager >
void G4VisCommandManagerMode< Manager >::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 214 of file G4VisCommandsListManager.hh.

References assert.

215 {
216  assert (0 != fpManager);
217  fpManager->SetMode(name);
218 }
#define assert(x)
Definition: mymalloc.cc:1309
const XML_Char * name

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