MCPcopy Create free account
hub / github.com/Kitware/CMake / AddCallback

Method AddCallback

Source/kwsys/CommandLineArguments.cxx:326–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void CommandLineArguments::AddCallback(char const* argument,
327 ArgumentTypeEnum type,
328 CallbackType callback, void* call_data,
329 char const* help)
330{
331 CommandLineArgumentsCallbackStructure s;
332 s.Argument = argument;
333 s.ArgumentType = type;
334 s.Callback = callback;
335 s.CallData = call_data;
336 s.VariableType = CommandLineArguments::NO_VARIABLE_TYPE;
337 s.Variable = nullptr;
338 s.Help = help;
339
340 this->Internals->Callbacks[argument] = s;
341 this->GenerateHelp();
342}
343
344void CommandLineArguments::AddArgument(char const* argument,
345 ArgumentTypeEnum type,

Callers 1

testCommandLineArgumentsFunction · 0.80

Calls 1

GenerateHelpMethod · 0.95

Tested by 1

testCommandLineArgumentsFunction · 0.64