Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::SystemExec Class Reference

#include <system_exec.h>

Inheritance diagram for ARDOUR::SystemExec:
[legend]

Public Member Functions

 SystemExec (std::string cmd, std::string argv="", bool supress_ld_env=false)
 
 SystemExec (std::string cmd, char **argv, bool supress_ld_env=false)
 
 SystemExec (std::string cmd, const std::map< char, std::string > subs, bool supress_ld_env=false)
 
 ~SystemExec ()
 
int start (StdErrMode stderr_mode=IgnoreAndClose)
 
- Public Member Functions inherited from PBD::SystemExec
 SystemExec (std::string cmd, std::string argv="", bool supress_ld_env=false)
 
 SystemExec (std::string cmd, char **argv, bool supress_ld_env=false)
 
 SystemExec (std::string command, const std::map< char, std::string > subs, bool supress_ld_env=false)
 
std::string to_s () const
 
int start (StdErrMode stderr_mode, const char *_vfork_exec_wrapper)
 
void terminate ()
 
bool is_running ()
 
int wait (int options=0)
 
void close_stdin ()
 
size_t write_to_stdin (std::string const &d, size_t len=0)
 
size_t write_to_stdin (const char *d, size_t len=0)
 
size_t write_to_stdin (const void *data, size_t bytes=0)
 
void output_interposer ()
 

Static Private Member Functions

static void initialize ()
 

Static Private Attributes

static bool _initialized
 
static Glib::Threads::Mutex _init_mutex
 
static std::string _vfork_exec
 

Additional Inherited Members

- Public Types inherited from PBD::SystemExec
enum  StdErrMode { ShareWithParent = 0 , IgnoreAndClose = 1 , MergeWithStdin = 2 }
 
- Static Public Member Functions inherited from PBD::SystemExec
static char * format_key_value_parameter (std::string, std::string)
 
- Public Attributes inherited from PBD::SystemExec
PBD::Signal< void(std::string, size_t)> ReadStdout
 
PBD::Signal< void()> Terminated
 
- Protected Member Functions inherited from PBD::SystemExec
void make_argp (std::string)
 
void make_argp_escaped (std::string command, const std::map< char, std::string > subs)
 
void make_envp (bool supress_ld_env)
 
- Protected Attributes inherited from PBD::SystemExec
std::string cmd
 path to command - set when creating the class More...
 
int nicelevel
 process nice level - defaults to 0 More...
 
char ** argp
 
char ** envp
 

Detailed Description

Definition at line 28 of file ardour/ardour/system_exec.h.

Constructor & Destructor Documentation

◆ SystemExec() [1/3]

ARDOUR::SystemExec::SystemExec ( std::string  cmd,
std::string  argv = "",
bool  supress_ld_env = false 
)

◆ SystemExec() [2/3]

ARDOUR::SystemExec::SystemExec ( std::string  cmd,
char **  argv,
bool  supress_ld_env = false 
)

◆ SystemExec() [3/3]

ARDOUR::SystemExec::SystemExec ( std::string  cmd,
const std::map< char, std::string >  subs,
bool  supress_ld_env = false 
)

◆ ~SystemExec()

ARDOUR::SystemExec::~SystemExec ( )
virtual

Reimplemented from PBD::SystemExec.

Member Function Documentation

◆ initialize()

static void ARDOUR::SystemExec::initialize ( )
staticprivate

◆ start()

int ARDOUR::SystemExec::start ( StdErrMode  stderr_mode = IgnoreAndClose)
inline

Definition at line 36 of file ardour/ardour/system_exec.h.

Member Data Documentation

◆ _init_mutex

Glib::Threads::Mutex ARDOUR::SystemExec::_init_mutex
staticprivate

Definition at line 45 of file ardour/ardour/system_exec.h.

◆ _initialized

bool ARDOUR::SystemExec::_initialized
staticprivate

Definition at line 44 of file ardour/ardour/system_exec.h.

◆ _vfork_exec

std::string ARDOUR::SystemExec::_vfork_exec
staticprivate

Definition at line 46 of file ardour/ardour/system_exec.h.


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