OpendTect-6_4  6.4
oddirs.h
Go to the documentation of this file.
1 #ifndef oddirs_h
2 #define oddirs_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: Aug 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 OpendTect directories.
14 
15 Beware that all functions may return a pointer to *the same* static buffer!
16 
17 -*/
18 
19 #ifndef gendefs_h
20 #include "basicmod.h"
21 #include "gendefs.h"
22 #endif
23 
24 extern "C" {
25 
26 /* Functions delivering files/directies in the 'survey data' scope */
27 
28 mGlobal(Basic) const char* GetBaseDataDir(void);
31 mGlobal(Basic) const char* GetDataDir(void);
34 mGlobal(Basic) const char* GetProcFileName(const char*);
38 /* Functions delivering files/directies in the 'sytem' scope */
39 
40 mGlobal(Basic) const char* GetSoftwareDir(bool acceptnone);
51 mGlobal(Basic) const char* GetBinSubDir(void);
54 mGlobal(Basic) const char* GetApplSetupDir(void);
62 typedef enum
63 {
65  ODSetupLoc_ApplSetupPref, /* Usual choice for GetSetupDataFileName */
69 
70 mGlobal(Basic) const char* GetSetupDataFileDir(ODSetupLocType,bool acceptnone);
75 #define mGetApplSetupDataDir() GetSetupDataFileDir(ODSetupLoc_ApplSetupOnly,0)
76 #define mGetSWDirDataDir() GetSetupDataFileDir(ODSetupLoc_SWDirOnly,0)
77 
78 mGlobal(Basic) const char* GetSetupDataFileName(ODSetupLocType,const char*,
79  bool acceptnone);
88 #define mGetSetupFileName(x) GetSetupDataFileName(ODSetupLoc_ApplSetupPref,x,0)
89 
92 mGlobal(Basic) const char* GetPlfSubDir(void);
100 mGlobal(Basic) const char* GetExecPlfDir(void);
107 mGlobal(Basic) const char* GetScriptDir(void);
114 mGlobal(Basic) const char* GetLibPlfDir(void);
121 mGlobal(Basic) inline const char* GetBinPlfDir(void)
122 { return GetExecPlfDir(); }
124 
125 mGlobal(Basic) const char* GetDocFileDir(const char* filedir);
127 #define mGetUserDocDir() GetDocFileDir("userdoc")
128 #define mGetProgrammerDocDir() GetDocFileDir("Programmer")
129 #define mGetSysAdmDocDir() GetDocFileDir("SysAdm")
131 
132 mGlobal(Basic) const char* GetExecScript(int remote);
137 #define mGetExecScript() GetExecScript(0)
139 mGlobal(Basic) const char* GetODExternalScript();
140 /* Location of od_external script to launch commands free of any OpendTect
141  environment
142 */
143 
144 mGlobal(Basic) const char* GetSoftwareUser(void);
152 mGlobal(Basic) const char* GetUserNm(void);
156  /* Functions delivering files/directies in the 'user-specific' scope */
157 mGlobal(Basic) const char* GetPersonalDir(void);
178 mGlobal(Basic) const char* GetSettingsDir(void);
185 mGlobal(Basic) const char* GetSettingsFileName(const char*);
189 mGlobal(Basic) const char* GetScriptsDir(const char*);
190 
191 
192 } // extern "C"
193 
194 #endif
const char * GetSetupDataFileName(ODSetupLocType, const char *, bool acceptnone)
Definition: oddirs.h:67
const char * GetSetupDataFileDir(ODSetupLocType, bool acceptnone)
const char * GetBaseDataDir(void)
#define mGlobal(module)
Definition: commondefs.h:163
const char * GetDataDir(void)
const char * GetExecScript(int remote)
const char * GetExecPlfDir(void)
const char * GetBinPlfDir(void)
Old don't use.
Definition: oddirs.h:122
const char * GetScriptsDir(const char *)
const char * GetPlfSubDir(void)
const char * GetSettingsDir(void)
ODSetupLocType
Definition: oddirs.h:62
const char * GetSettingsFileName(const char *)
const char * GetApplSetupDir(void)
const char * GetScriptDir(void)
Definition: oddirs.h:66
const char * GetBinSubDir(void)
Definition: oddirs.h:64
const char * GetUserNm(void)
const char * GetDocFileDir(const char *filedir)
const char * GetODExternalScript()
const char * GetSoftwareUser(void)
const char * GetPersonalDir(void)
Definition: oddirs.h:65
const char * GetProcFileName(const char *)
const char * GetSoftwareDir(bool acceptnone)
const char * GetLibPlfDir(void)

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