system_process.h File Reference

Classes

class  SystemProcessKilledErrorInterface
 
class  SystemProcessOperationErrorInterface
 
class  SystemProcessObjectInterface
 
class  SystemProcessInterface
 

Namespaces

 maxon
 

Typedefs

using ExecuteProgramCallback = Int32(*)(SystemProcessObjectRef processRef, EXECUTEPROGRAMCALLBACK cmd, void *userdata, const Url &logfile)
 

Enumerations

enum  EXECUTEPROGRAMFLAGS {
  NONE,
  CAPTURELOGFILE,
  DONT_DELETE_LOGFILE,
  HIDE_APPLICATION
}
 
enum  EXECUTEPROGRAMCALLBACK {
  STARTED,
  RUNNING,
  FINISHED,
  KILLED,
  CLEANUP_OK,
  CLEANUP_FAILED
}
 
enum  WAIT_PROCESS_RESULT {
  FINISHED,
  RUNNING
}
 

Functions

enum maxon::EXECUTEPROGRAMFLAGS MAXON_ENUM_FLAGS (EXECUTEPROGRAMFLAGS)
 
enum maxon::EXECUTEPROGRAMCALLBACK MAXON_ENUM_LIST (EXECUTEPROGRAMCALLBACK)
 
enum maxon::WAIT_PROCESS_RESULT MAXON_ENUM_LIST (WAIT_PROCESS_RESULT)
 
 MAXON_DECLARATION (Class< SystemProcessObjectRef >, SystemProcessObjectClass, "net.maxon.class.systemprocessobject")
 

Variables

 NONE
 
 CAPTURELOGFILE
 
 DONT_DELETE_LOGFILE
 
 HIDE_APPLICATION
 
 STARTED
 
 RUNNING
 
 FINISHED
 
 KILLED
 
 CLEANUP_OK
 
 CLEANUP_FAILED
 

Variable Documentation

◆ NONE

NONE

◆ CAPTURELOGFILE

CAPTURELOGFILE

The standard output will be routed into a file.

◆ DONT_DELETE_LOGFILE

DONT_DELETE_LOGFILE

The logfile will not be deleted at the end of the call.

◆ HIDE_APPLICATION

HIDE_APPLICATION

Starts the application in hidden mode (e.g. suppresses the console window when running under windows).

◆ STARTED

STARTED

Program started regular.

◆ RUNNING

RUNNING

< Process is still running.

Program is running, this callback comes every second. return 0 to continue. return 'stop' to kill the running process.

◆ FINISHED

FINISHED

Program finish.

Process has finished.

◆ KILLED

KILLED

Program finish with signal kill.

◆ CLEANUP_OK

CLEANUP_OK

Cleanup phase (succeeded case), here the logfile should be deleted!

◆ CLEANUP_FAILED

CLEANUP_FAILED

Cleanup phase (failed case), here the logfile should be deleted!