34#ifndef G4NtupleMessenger_h
35#define G4NtupleMessenger_h 1
60 template <
typename CMD>
64 void SetActivationCmd();
65 void SetActivationToAllCmd();
66 void SetFileNameCmd();
67 void SetFileNameToAllCmd();
71 static constexpr std::string_view fkClass {
"G4NtupleMessenger" };
76 std::unique_ptr<G4UIdirectory> fNtupleDir;
77 std::unique_ptr<G4UIcommand> fSetActivationCmd;
78 std::unique_ptr<G4UIcmdWithABool> fSetActivationAllCmd;
79 std::unique_ptr<G4UIcommand> fSetFileNameCmd;
80 std::unique_ptr<G4UIcmdWithAString> fSetFileNameAllCmd;
81 std::unique_ptr<G4UIcommand> fListCmd;
85template <
typename CMD>
86std::unique_ptr<CMD> G4NtupleMessenger::CreateCommand(
91 auto command = std::make_unique<CMD>(fullName,
this);
92 command->SetGuidance(guidance.c_str());
void SetNewValue(G4UIcommand *command, G4String value) final
~G4NtupleMessenger() override
G4NtupleMessenger()=delete
const char * name(G4int ptype)