Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
+7 -5
View File
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4UImessenger.cc 74278 2013-10-02 15:04:18Z gcosmo $
//
#include "G4UImessenger.hh"
@@ -40,10 +40,11 @@ G4UImessenger::G4UImessenger()
{
}
G4UImessenger::G4UImessenger(const G4String& path, const G4String& dsc)
G4UImessenger::G4UImessenger(const G4String& path, const G4String& dsc,
G4bool commandsToBeBroadcasted)
: baseDir(NULL), baseDirName("")
{
CreateDirectory(path, dsc);
CreateDirectory(path, dsc, commandsToBeBroadcasted);
}
G4UImessenger::~G4UImessenger()
@@ -120,7 +121,8 @@ void G4UImessenger::AddUIcommand(G4UIcommand * newCommand)
<< newCommand->GetCommandPath() << ">." << G4endl;
}
void G4UImessenger::CreateDirectory(const G4String& path, const G4String& dsc)
void G4UImessenger::CreateDirectory(const G4String& path, const G4String& dsc,
G4bool commandsToBeBroadcasted)
{
G4UImanager* ui = G4UImanager::GetUIpointer();
@@ -131,7 +133,7 @@ void G4UImessenger::CreateDirectory(const G4String& path, const G4String& dsc)
if (tree) {
baseDirName = tree-> GetPathName();
} else {
baseDir = new G4UIdirectory(fullpath.c_str());
baseDir = new G4UIdirectory(fullpath.c_str(),commandsToBeBroadcasted);
baseDirName = fullpath;
baseDir-> SetGuidance(dsc.c_str());
}