MCPcopy Create free account
hub / github.com/Geant4/geant4 / GetCurrentValues

Method GetCurrentValues

source/intercoms/src/G4UImanager.cc:163–172  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

161
162// --------------------------------------------------------------------
163G4String G4UImanager::GetCurrentValues(const char* aCommand)
164{
165 G4String theCommand = aCommand;
166 savedCommand = treeTop->FindPath(theCommand);
167 if (savedCommand == nullptr) {
168 G4cerr << "command not found" << G4endl;
169 return G4String();
170 }
171 return savedCommand->GetCurrentValue();
172}
173
174// --------------------------------------------------------------------
175G4String G4UImanager::GetCurrentStringValue(const char* aCommand, G4int parameterNumber,

Callers 5

ReviewPlotsFunction · 0.80
ResultsOfHnPlotsFunction · 0.80
SetPlotterHistogramsMethod · 0.80
ShowCurrentMethod · 0.80
SetNewValueMethod · 0.80

Calls 3

FindPathMethod · 0.80
G4StringClass · 0.50
GetCurrentValueMethod · 0.45

Tested by

no test coverage detected