Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
+18
View File
@@ -194,6 +194,20 @@ class G4UIcommand
failureDescription = "";
}
public:
enum CommandType
{ BaseClassCmd, WithoutParameterCmd,
WithABoolCmd, WithAnIntegerCmd, WithALongIntCmd,
WithADoubleCmd, WithADoubleAndUnitCmd, With3VectorCmd, With3VectorAndUnitCmd,
WithAStringCmd, CmdDirectory = -1 };
inline CommandType GetCommandType() const
{ return commandType; }
void SetCommandType(CommandType);
inline void SetDefaultSortFlag(G4bool val)
{ ifSort = val; }
protected:
// --- the following is used by CheckNewValue() --------
@@ -209,6 +223,8 @@ class G4UIcommand
G4int commandFailureCode = 0;
G4String failureDescription = "";
G4bool ifSort = false;
private:
void G4UIcommandCommonConstructorCode(const char* theCommandPath);
@@ -246,6 +262,8 @@ class G4UIcommand
// Data -----------------------------------------------------------
private:
CommandType commandType = BaseClassCmd;
G4UImessenger* messenger = nullptr;
G4String commandPath;
G4String commandName;