Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#include "cpm/CommandLineReader.hpp"
bool use_simulated_time = cpm::cmd_parameter_bool("simulated_time", false, argc, argv);
int my_int = cpm::cmd_parameter_int("my_int", 5, argc, argv);

You can read in int, uint_64, double, float and string as scalar or vector. For further information refer to our source code:

References

https://git.rwth-aachen.de/CPM/Project/Lab/cpm_basegithub.com/embedded-software-laboratory/cpm_lab/blob/master/cpm_lib/include/cpm/CommandLineReader.hpp

https://git.rwth-aachen.de/CPM/Project/Lab/cpm_basegithub.com/embedded-software-laboratory/cpm_lab/blob/master/cpm_lib/src/CommandLineReader.cpp