cpp-utilities/application/commandlineutils.h

30 lines
673 B
C
Raw Normal View History

2015-06-24 00:44:16 +02:00
#ifndef APPLICATIONUTILITIES_COMMANDLINEUTILS_H
#define APPLICATIONUTILITIES_COMMANDLINEUTILS_H
2015-09-06 20:19:09 +02:00
#include "./global.h"
2015-06-24 00:44:16 +02:00
namespace ApplicationUtilities {
2016-07-02 02:02:47 +02:00
/*!
* \brief The Response enum is used to specify the default response for the confirmPrompt() method.
*/
2015-06-24 00:44:16 +02:00
enum class Response
{
None,
Yes,
No
};
bool LIB_EXPORT confirmPrompt(const char *message, Response defaultResponse = Response::None);
#ifdef PLATFORM_WINDOWS
void LIB_EXPORT startConsole();
2016-01-27 02:17:06 +01:00
# define CMD_UTILS_START_CONSOLE ::ApplicationUtilities::startConsole();
#else
2016-01-27 02:17:06 +01:00
# define CMD_UTILS_START_CONSOLE
#endif
2015-06-24 00:44:16 +02:00
} // namespace ApplicationUtilities
#endif // APPLICATIONUTILITIES_COMMANDLINEUTILS_H