#include <G4UnitsMessenger.hh>
Inheritance diagram for G4UnitsMessenger:
Public Member Functions | |
G4UnitsMessenger () | |
~G4UnitsMessenger () | |
void | SetNewValue (G4UIcommand *, G4String) |
Definition at line 49 of file G4UnitsMessenger.hh.
G4UnitsMessenger::G4UnitsMessenger | ( | ) |
Definition at line 42 of file G4UnitsMessenger.cc.
References G4UIcommand::SetGuidance().
00043 { 00044 UnitsTableDir = new G4UIdirectory("/units/"); 00045 UnitsTableDir->SetGuidance("Available units."); 00046 00047 ListCmd = new G4UIcmdWithoutParameter("/units/list",this); 00048 ListCmd->SetGuidance("full list of available units."); 00049 }
G4UnitsMessenger::~G4UnitsMessenger | ( | ) |
void G4UnitsMessenger::SetNewValue | ( | G4UIcommand * | , | |
G4String | ||||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 61 of file G4UnitsMessenger.cc.
References G4UnitDefinition::PrintUnitsTable().
00062 { 00063 if (command == ListCmd) 00064 { G4UnitDefinition::PrintUnitsTable(); } 00065 }