Import Geant4 10.4.1 source tree

This commit is contained in:
Gabriele Cosmo
2018-03-02 09:34:30 +01:00
parent fc6af9e721
commit fe04dcb406
341 changed files with 18389 additions and 24522 deletions
+17 -1
View File
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4UIcommand.hh 77563 2013-11-26 09:03:18Z gcosmo $
// $Id: G4UIcommand.hh 108488 2018-02-15 14:52:00Z gcosmo $
//
//
@@ -194,6 +194,22 @@ class G4UIcommand
inline G4bool IsWorkerThreadOnly() const
{ return workerThreadOnly; }
protected:
G4int commandFailureCode;
G4String failureDescription;
public:
inline void CommandFailed( G4int errCode, G4ExceptionDescription& ed )
{ commandFailureCode = errCode; failureDescription = ed.str(); }
inline void CommandFailed( G4ExceptionDescription& ed )
{ commandFailureCode = 1; failureDescription = ed.str(); }
inline G4int IfCommandFailed()
{ return commandFailureCode; }
inline G4String& GetFailureDescription()
{ return failureDescription; }
inline void ResetFailure()
{ commandFailureCode = 0; failureDescription = ""; }
protected:
G4int CheckNewValue(const char* newValue);