Geant4-11
Functions
anonymous_namespace{G4NtupleMessenger.cc} Namespace Reference

Functions

void WrongParametersWarning (const G4String &commandName, std::size_t got, std::size_t expected, std::string_view className)
 

Function Documentation

◆ WrongParametersWarning()

void anonymous_namespace{G4NtupleMessenger.cc}::WrongParametersWarning ( const G4String commandName,
std::size_t  got,
std::size_t  expected,
std::string_view  className 
)

Definition at line 44 of file G4NtupleMessenger.cc.

47{
48 Warn(
49 "Got wrong number of \"" + commandName + "\" parameters: " +
50 to_string(got) + " instead of " + to_string(expected) + " expected",
51 className, "SetNewValue");
52}
static char className[]
Definition: G4Win32.cc:36
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)

References className, and G4Analysis::Warn().

Referenced by G4NtupleMessenger::SetNewValue().