blob: f046b8c529bf3173ebdca28c6034db3657b0e9ce [file] [log] [blame]
#pragma once
#include <string>
/*
* @brief Search the command line arguments for an option
*
* @param i_begin command line args vector begin
* @param i_end command line args vector end
* @param i_option configuration option to look for
*
* @return true = option found on command line
*/
bool getCliOption(char** i_begin, char** i_end, const std::string& i_option);
/*
* @brief Search the command line arguments for a setting value
*
* @param i_begin command line args vector begin
* @param i_end command line args vectory end
* @param i_setting configuration setting to look for
*
* @return value of the setting or 0 if setting not found or value not given
*/
char* getCliSetting(char** i_begin, char** i_end, const std::string& i_setting);
/*
*
* @brief Get configuration flags from command line
*
* @param i_begin command line args vector begin
* @param i_end command line args vector end
* @param i_vital vital handler enable option
* @param i_checkatop checkstop handler enable option
* @param i_terminate TI handler enable option
* @param i_breakpoints breakpoint handler enable option
*/
void parseConfig(char** i_begin, char** i_end, bool& i_vital, bool& i_checkstop,
bool& i_terminate, bool& i_breakpoints);