21#ifndef G_EXECUTABLE_COMMAND_H
22#define G_EXECUTABLE_COMMAND_H
32 class ExecutableCommand ;
47 G_EXCEPTION( WindowsError ,
tx(
"cannot determine the windows directory") )
65 void add(
const std::string & arg ) ;
A structure representing an external program, holding a path and a set of arguments.
ExecutableCommand(const std::string &command_line={})
Constructor taking a complete command-line.
void add(const std::string &arg)
Adds a command-line argument.
StringArray args() const
Returns the command-line arguments.
std::string displayString() const
Returns a printable representation for logging and diagnostics.
void insert(const G::StringArray &)
Inserts at the front of the command-line.
Path exe() const
Returns the executable.
A Path object represents a file system path.
std::vector< std::string > StringArray
A std::vector of std::strings.
constexpr const char * tx(const char *p) noexcept
A briefer alternative to G::gettext_noop().