Import Geant4 11.4.0.beta source tree
This commit is contained in:
@@ -244,6 +244,11 @@ class G4UImanager : public G4VStateDependent
|
||||
inline bool IsLastCommandOutputTreated() { return fLastCommandOutputTreated; }
|
||||
inline void SetLastCommandOutputTreated() { fLastCommandOutputTreated = true; }
|
||||
|
||||
void StartRecording(G4String fn, G4bool ifAppend,
|
||||
G4bool ifTemp=false, G4String assocCmd="**NOCMD**");
|
||||
void RecordCommand(const G4String& aCommand);
|
||||
G4int EndRecording();
|
||||
|
||||
protected:
|
||||
G4UImanager();
|
||||
|
||||
@@ -293,6 +298,12 @@ class G4UImanager : public G4VStateDependent
|
||||
G4int lastRC = 0;
|
||||
|
||||
G4bool fLastCommandOutputTreated = true;
|
||||
|
||||
G4int fRecordDepth = -1;
|
||||
std::vector<std::ofstream*> fRecordFile;
|
||||
std::vector<std::pair<G4String,G4bool>> fRecordFileName;
|
||||
std::vector<G4String> fAccosiatedCommand;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -62,6 +62,8 @@
|
||||
// /control/ifInteractive
|
||||
// /control/doifBatch
|
||||
// /control/doifInteractive
|
||||
// /control/recordToMacro
|
||||
// /control/endRecord
|
||||
|
||||
// Author: Makoto Asai, SLAC - 2001
|
||||
// --------------------------------------------------------------------
|
||||
@@ -119,6 +121,8 @@ class G4UIcontrolMessenger : public G4UImessenger
|
||||
G4UIcmdWithAString* ifInteractiveCommand = nullptr;
|
||||
G4UIcmdWithAString* doifBatchCommand = nullptr;
|
||||
G4UIcmdWithAString* doifInteractiveCommand = nullptr;
|
||||
G4UIcommand* recordToMacroCommand = nullptr;
|
||||
G4UIcmdWithoutParameter* endRecordCommand = nullptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user