OpendTect  6.3
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 * GetExecutableName (void)
 
const char * GetOSIdentifier (void)
 
bool isProcessAlive (int pid)
 
const char * getProcessNameForPID (int pid)
 
int ExitProgram (int ret)
 
bool IsExiting ()
 
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 ()
 
void SetProgramArgs (int argc, char **argv, bool require_valid_dataroot=true)
 
bool AreProgramArgsSet (void)
 
char ** GetArgV (void)
 
int & GetArgC (void)
 
const char * sSeismicSubDir ()
 
const char * sWellSubDir ()
 
const char * sSurfaceSubDir ()
 

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* GetExecutableName ( void  )

returns name of the executable. setProgramArgs must be called for it to work.

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 IsExiting ( )

Returns if ExitProgram is called

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,
bool  require_valid_dataroot = true 
)
void sleepSeconds ( double  )

puts current thread to sleep for (fraction of) seconds

const char* sSeismicSubDir ( )
inline
const char* sSurfaceSubDir ( )
inline
void SwapBytes ( void *  ,
int  nbytes 
)

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

const char* sWellSubDir ( )
inline

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