1 #ifndef APPLICATIONUTILITIES_COMMANDLINEUTILS_H 2 #define APPLICATIONUTILITIES_COMMANDLINEUTILS_H 8 #ifdef PLATFORM_WINDOWS 22 #ifdef PLATFORM_WINDOWS 24 std::pair<std::vector<std::unique_ptr<char[]>>, std::vector<char *>>
CPP_UTILITIES_EXPORT convertArgsToUtf8();
25 #define CMD_UTILS_START_CONSOLE ::ApplicationUtilities::startConsole(); 26 #define CMD_UTILS_CONVERT_ARGS_TO_UTF8 \ 27 auto utf8Args = ::ApplicationUtilities::convertArgsToUtf8(); \ 28 argv = utf8Args.second.data(); \ 29 argc = static_cast<int>(utf8Args.second.size()); 31 #define CMD_UTILS_START_CONSOLE 32 #define CMD_UTILS_CONVERT_ARGS_TO_UTF8 42 , character(character)
57 for (
unsigned char i = 0; i < indentation.
level; ++i) {
65 #endif // APPLICATIONUTILITIES_COMMANDLINEUTILS_H
Contains currently only ArgumentParser and related classes.
The Indentation class allows printing indentation conveniently, eg.
bool CPP_UTILITIES_EXPORT confirmPrompt(const char *message, Response defaultResponse=Response::None)
Prompts for confirmation displaying the specified message.
Response
The Response enum is used to specify the default response for the confirmPrompt() method...
Indentation operator+(unsigned char level)
#define CPP_UTILITIES_EXPORT
Marks the symbol to be exported by the c++utilities library.
Indentation(unsigned char level=4, char character=' ')
CPP_UTILITIES_EXPORT std::ostream & operator<<(std::ostream &out, Indentation indentation)