softwarecontainer  0.18.0-739e8d7 2017-05-04
softwarecontainer::Executable Class Referenceabstract
Inheritance diagram for softwarecontainer::Executable:
[legend]

Public Types

typedef std::function< int()> ExecFunction
 

Public Member Functions

virtual bool execute (ExecFunction function, pid_t *pid, const EnvironmentVariables &variables=EnvironmentVariables(), int stdin=-1, int stdout=-1, int stderr=2)=0
 Executes a commandline. More...
 
virtual bool execute (const std::string &commandLine, pid_t *pid, const EnvironmentVariables &variables=EnvironmentVariables(), const std::string &workingDirectory="/", int stdin=-1, int stdout=1, int stderr=2)=0
 Executes a function. More...
 

Detailed Description

Definition at line 27 of file executable.h.

Member Function Documentation

virtual bool softwarecontainer::Executable::execute ( ExecFunction  function,
pid_t *  pid,
const EnvironmentVariables &  variables = EnvironmentVariables(),
int  stdin = -1,
int  stdout = -1,
int  stderr = 2 
)
pure virtual

Executes a commandline.

Implemented in softwarecontainer::Container.

virtual bool softwarecontainer::Executable::execute ( const std::string &  commandLine,
pid_t *  pid,
const EnvironmentVariables &  variables = EnvironmentVariables(),
const std::string &  workingDirectory = "/",
int  stdin = -1,
int  stdout = 1,
int  stderr = 2 
)
pure virtual

Executes a function.

Implemented in softwarecontainer::Container.


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