A structure representing an external program, holding a path and a set of arguments. More...
#include <gexecutable.h>
Public Member Functions | |
Executable (const std::string &command_line=std::string()) | |
Constructor taking a complete command-line. More... | |
Path | exe () const |
Returns the executable. More... | |
Strings | args () const |
Returns the command-line arguments. More... | |
std::string | displayString () const |
Returns a printable representation for logging and diagnostics. More... | |
A structure representing an external program, holding a path and a set of arguments.
The constructor takes a complete command-line and splits it up into the executable part and a list of command-line parameters.
Definition at line 43 of file gexecutable.h.
|
explicit |
Constructor taking a complete command-line.
The command-line is split up on unescaped space characters.
Definition at line 25 of file gexecutable.cpp.
References G::Str::replaceAll(), and G::Str::splitIntoTokens().
G::Strings G::Executable::args | ( | ) | const |
Returns the command-line arguments.
Definition at line 67 of file gexecutable.cpp.
std::string G::Executable::displayString | ( | ) | const |
Returns a printable representation for logging and diagnostics.
Definition at line 72 of file gexecutable.cpp.
References G::Str::join().
G::Path G::Executable::exe | ( | ) | const |
Returns the executable.
Definition at line 62 of file gexecutable.cpp.
Referenced by GSmtp::FactoryParser::check().