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

Method ShowCurrent

source/interfaces/core/src/G4VBasicShell.cc:306–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void G4VBasicShell::ShowCurrent(const G4String& newCommand) const
307{
308 G4UImanager* UI = G4UImanager::GetUIpointer();
309 if (UI == nullptr) return;
310 G4String comString = newCommand.substr(1, newCommand.length() - 1);
311 G4String theCommand = ModifyToFullPathCommand(comString);
312 G4String curV = UI->GetCurrentValues(theCommand);
313 if (! curV.empty()) {
314 G4cout << "Current value(s) of the parameter(s) : " << curV << G4endl;
315 }
316}
317
318void G4VBasicShell::ChangeDirectoryCommand(const G4String& newCommand)
319{

Callers

nothing calls this directly

Calls 4

substrMethod · 0.80
GetCurrentValuesMethod · 0.80
lengthMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected