OpendTect  6.6
Classes | Enumerations | Functions
OS Namespace Reference

Classes

class  CommandExecPars
 Specifies how to execute a command. More...
 
class  CommandLauncher
 Launches machine commands. More...
 
class  MachineCommand
 Encapsulates an actual command to execute + the machine to run it on. More...
 

Enumerations

enum  KeyStyle { NewStyle , OldStyle }
 
enum  LaunchType { Wait4Finish , RunInBG , Batch , BatchWait }
 

Functions

bool ExecCommand (const char *cmd, LaunchType lt=Wait4Finish, BufferString *stdoutput=0, BufferString *stderror=0)
 
bool isBatchProg (OS::LaunchType lt)
 
bool isOldStyle (OS::KeyStyle ks)
 

Enumeration Type Documentation

◆ KeyStyle

Enumerator
NewStyle 
OldStyle 

◆ LaunchType

Enumerator
Wait4Finish 
RunInBG 
Batch 
BatchWait 

Function Documentation

◆ ExecCommand()

bool OS::ExecCommand ( const char *  cmd,
LaunchType  lt = Wait4Finish,
BufferString stdoutput = 0,
BufferString stderror = 0 
)

convenience function; for specific options use the CommandLauncher

◆ isBatchProg()

bool OS::isBatchProg ( OS::LaunchType  lt)
inline

◆ isOldStyle()

bool OS::isOldStyle ( OS::KeyStyle  ks)
inline

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022