OpendTect-6_4  6.4
Typedefs | Functions
genc.h File Reference
Include dependency graph for genc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* PtrAllVoidFn) (void)
 

Functions

const char * GetProjectVersionName (void)
 
int GetPID (void)
 
const char * GetLocalHostName (void)
 
const char * GetFullExecutablePath (void)
 
const char * GetOSIdentifier (void)
 
char ** GetArgV (void)
 
int GetArgC (void)
 
bool AreProgramArgsSet (void)
 
void SetProgramArgs (int argc, char **argv)
 
bool isProcessAlive (int pid)
 
const char * getProcessNameForPID (int pid)
 
int ExitProgram (int ret)
 
void NotifyExitProgram (PtrAllVoidFn)
 
void PutIsLittleEndian (unsigned char *)
 
void SwapBytes (void *, int nbytes)
 
int InSysAdmMode (void)
 
void sleepSeconds (double)
 
const char * GetVCSVersion (void)
 
const char * GetLastSystemErrorMessage (void)
 
void ForkProcess (void)
 
void SetInSysAdmMode (void)
 
void EmptyFunction ()
 

Typedef Documentation

typedef void(* PtrAllVoidFn) (void)

Function Documentation

bool AreProgramArgsSet ( void  )
void EmptyFunction ( )
inline
int ExitProgram ( int  ret)

Win32: kills progam itself and ignores ret. Unix: uses exit(ret). Return value is convenience only, so you can use like: return exitProgram( retval );

void ForkProcess ( void  )
int GetArgC ( void  )
char** GetArgV ( void  )
const char* GetFullExecutablePath ( void  )

returns full path to executable. setProgramArgs must be called for it to work.

const char* GetLastSystemErrorMessage ( void  )
const char* GetLocalHostName ( void  )

returns (as expected) local host name

const char* GetOSIdentifier ( void  )
int GetPID ( void  )

returns process ID

const char* getProcessNameForPID ( int  pid)

returns null if process not found, otherwise returns the executable name

const char* GetProjectVersionName ( void  )

"dTect Vx.x"

const char* GetVCSVersion ( void  )

Returns Subversion revision number or git commit hash

int InSysAdmMode ( void  )

returns 0 unless in sysadm mode

bool isProcessAlive ( int  pid)

returns 1 if the process is still running

void NotifyExitProgram ( PtrAllVoidFn  )

Function will be called on 'ExitProgram'

void PutIsLittleEndian ( unsigned char *  )

Puts into 1 byte: 0=SunSparc/SGI (big), 1=PC (little)

void SetInSysAdmMode ( void  )
void SetProgramArgs ( int  argc,
char **  argv 
)
void sleepSeconds ( double  )

puts current thread to sleep for (fraction of) seconds

void SwapBytes ( void *  ,
int  nbytes 
)

nbytes=2,4,... e.g. nbytes=4: abcd becomes cdab


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