VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
G::Executable Class Reference

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...
 
 Executable (const G::Path &exe, const StringArray &args)
 Constructor taking the executable and arguments explicitly.
 
Path exe () const
 Returns the executable.
 
StringArray args () const
 Returns the command-line arguments.
 
void add (const std::string &arg)
 Adds a command-line argument.
 
std::string displayString () const
 Returns a printable representation for logging and diagnostics.
 

Detailed Description

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.

See Also
G::Path, G::Args

Definition at line 41 of file gexecutable.h.

Constructor & Destructor Documentation

G::Executable::Executable ( const std::string &  command_line = std::string())
explicit

Constructor taking a complete command-line.

The command-line is split up on unescaped space characters.

Definition at line 26 of file gexecutable.cpp.


The documentation for this class was generated from the following files: