C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Classes | Namespaces | Macros | Enumerations | Functions
commandlineutils.h File Reference
#include "../global.h"
#include <ostream>
Include dependency graph for commandlineutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ApplicationUtilities::TerminalSize
 The TerminalSize struct describes a terminal size. More...
 
class  ApplicationUtilities::Indentation
 The Indentation class allows printing indentation conveniently, eg. More...
 

Namespaces

 ApplicationUtilities
 Contains currently only ArgumentParser and related classes.
 

Macros

#define CMD_UTILS_START_CONSOLE
 
#define CMD_UTILS_CONVERT_ARGS_TO_UTF8
 

Enumerations

enum  ApplicationUtilities::Response { ApplicationUtilities::Response::None, ApplicationUtilities::Response::Yes, ApplicationUtilities::Response::No }
 The Response enum is used to specify the default response for the confirmPrompt() method. More...
 

Functions

bool CPP_UTILITIES_EXPORT ApplicationUtilities::confirmPrompt (const char *message, Response defaultResponse)
 Prompts for confirmation displaying the specified message. More...
 
TerminalSize CPP_UTILITIES_EXPORT ApplicationUtilities::determineTerminalSize ()
 Returns the current size of the terminal. More...
 
CPP_UTILITIES_EXPORT std::ostream & ApplicationUtilities::operator<< (std::ostream &out, Indentation indentation)
 

Macro Definition Documentation

◆ CMD_UTILS_CONVERT_ARGS_TO_UTF8

#define CMD_UTILS_CONVERT_ARGS_TO_UTF8

Definition at line 32 of file commandlineutils.h.

◆ CMD_UTILS_START_CONSOLE

#define CMD_UTILS_START_CONSOLE

Definition at line 31 of file commandlineutils.h.