G::Executable Class Reference

A structure representing an external program, holding a path and a set of arguments. More...

#include <gexecutable.h>

List of all members.

Public Member Functions

 Executable (const std::string &command_line=std::string())
 Constructor taking a complete command-line.
Path exe () const
 Returns the executable.
Strings args () const
 Returns the command-line arguments.
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 43 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 25 of file gexecutable.cpp.

References G::Str::replaceAll(), s, and G::Str::splitIntoTokens().


Member Function Documentation

G::Path G::Executable::exe (  )  const

Returns the executable.

Definition at line 62 of file gexecutable.cpp.

Referenced by GSmtp::FactoryParser::check().

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(), and G::Path::str().


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

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5