| 324 | } |
| 325 | |
| 326 | void 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 | |
| 344 | void CommandLineArguments::AddArgument(char const* argument, |
| 345 | ArgumentTypeEnum type, |