OpendTect-6_4  6.4
genc.h
Go to the documentation of this file.
1 #ifndef genc_h
2 #define genc_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: 23-10-1996
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 Some general utilities, that need to be accessible in many places:
14 
15 -*/
16 
17 #ifndef gendefs_h
18 #include "basicmod.h"
19 #include "gendefs.h"
20 #endif
21 
22 # include "string2.h"
23 
24 extern "C" {
25 
26 mGlobal(Basic) const char* GetProjectVersionName(void);
29 mGlobal(Basic) int GetPID(void);
32 mGlobal(Basic) const char* GetLocalHostName(void);
35 mGlobal(Basic) const char* GetFullExecutablePath(void);
39 mGlobal(Basic) const char* GetOSIdentifier(void);
40 
41 mGlobal(Basic) char** GetArgV(void);
42 
43 mGlobal(Basic) int GetArgC(void);
44 
45 mGlobal(Basic) bool AreProgramArgsSet(void);
46 
47 mGlobal(Basic) void SetProgramArgs(int argc, char** argv);
48 
49 mGlobal(Basic) bool isProcessAlive(int pid);
51 mGlobal(Basic) const char* getProcessNameForPID(int pid);
56 mGlobal(Basic) int ExitProgram( int ret );
63 typedef void (*PtrAllVoidFn)(void);
67 mGlobal(Basic) void PutIsLittleEndian(unsigned char*);
70 mGlobal(Basic) void SwapBytes(void*,int nbytes);
73 mGlobal(Basic) int InSysAdmMode(void);
76 mGlobal(Basic) void sleepSeconds(double);
80 mGlobal(Basic) const char* GetVCSVersion(void);
83 mGlobal( Basic ) const char* GetLastSystemErrorMessage(void);
84 
85 mGlobal( Basic ) void ForkProcess(void);
86 
87 
88 mGlobal( Basic ) int InSysAdmMode(void);
89 mGlobal( Basic ) void SetInSysAdmMode(void);
90 
91 
92 inline void EmptyFunction() {}
93 /* Used in some macros and ifdefs */
94 
95 }
96 
97 
98 #endif
void SetProgramArgs(int argc, char **argv)
void ForkProcess(void)
#define mGlobal(module)
Definition: commondefs.h:163
void NotifyExitProgram(PtrAllVoidFn)
void SetInSysAdmMode(void)
void sleepSeconds(double)
void EmptyFunction()
Definition: genc.h:92
int GetArgC(void)
void(* PtrAllVoidFn)(void)
Definition: genc.h:63
const char * GetLastSystemErrorMessage(void)
const char * getProcessNameForPID(int pid)
const char * GetLocalHostName(void)
void SwapBytes(void *, int nbytes)
char ** GetArgV(void)
const char * GetProjectVersionName(void)
const char * GetFullExecutablePath(void)
const char * GetVCSVersion(void)
int GetPID(void)
int ExitProgram(int ret)
bool isProcessAlive(int pid)
int InSysAdmMode(void)
void PutIsLittleEndian(unsigned char *)
const char * GetOSIdentifier(void)
bool AreProgramArgsSet(void)

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