32#ifndef G4HnMessenger_h
33#define G4HnMessenger_h 1
58 template <
typename CMD>
64 void SetHnActivationCmd();
65 void SetHnActivationToAllCmd();
66 void SetHnPlottingCmd();
67 void SetHnPlottingToAllCmd();
68 void SetHnFileNameCmd();
69 void SetHnFileNameToAllCmd();
72 static constexpr std::string_view fkClass {
"G4HnMessenger" };
77 std::unique_ptr<G4UIcommand> fSetAsciiCmd;
78 std::unique_ptr<G4UIcommand> fSetActivationCmd;
79 std::unique_ptr<G4UIcmdWithABool> fSetActivationAllCmd;
80 std::unique_ptr<G4UIcommand> fSetPlottingCmd;
81 std::unique_ptr<G4UIcmdWithABool> fSetPlottingAllCmd;
82 std::unique_ptr<G4UIcommand> fSetFileNameCmd;
83 std::unique_ptr<G4UIcmdWithAString> fSetFileNameAllCmd;
87template <
typename CMD>
88std::unique_ptr<CMD> G4HnMessenger::CreateCommand(
92 G4String fullGuidance = guidance + GetObjectType();
94 auto command = std::make_unique<CMD>(fullName,
this);
95 command->SetGuidance(fullGuidance);
~G4HnMessenger() override
void SetNewValue(G4UIcommand *command, G4String value) final
const char * name(G4int ptype)