OpendTect-6_4  6.4
odinst.h
Go to the documentation of this file.
1 #ifndef odinst_h
2 #define odinst_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Feb 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "basicmod.h"
16 #include "enums.h"
17 
18 class Settings;
19 class BufferStringSet;
20 
23 namespace ODInst
24 {
27  mGlobal(Basic) bool canInstall();
28  mGlobal(Basic) void startInstManagement();
29  mGlobal(Basic) void startInstManagementWithRelDir(const char*);
30 
31  mGlobal(Basic) bool updatesAvailable();
32  mGlobal(Basic) bool runInstMgrForUpdt();
33  mGlobal(Basic) const char* getPkgVersion(const char* file_pkg_basenm);
35  inline bool isErrPkgVersion( const char* s )
36  { return !s || !*s || *s == '['; }
37 
38 
49  mGlobal(Basic) bool autoInstTypeIsFixed();
52 
54  mGlobal(Basic) const char* sKeyAutoInst();
55  mGlobal(Basic) Settings& userSettings();
56 
57  mGlobal(Basic) RelType getRelType();
59 
60 
61 } // namespace
62 
63 #ifdef __mac__
64 #define mInstallerDirNm "OpendTect Installer.app"
65 #else
66 #define mInstallerDirNm "Installer"
67 #endif
68 
69 #endif
Definition: odinst.h:42
Definition: odinst.h:41
Settings & userSettings()
AutoInstType
Definition: odinst.h:39
AutoInstType getAutoInstType()
#define mGlobal(module)
Definition: commondefs.h:163
#define mDeclareNameSpaceEnumUtils(mod, enm)
Definition: enums.h:274
Definition: odinst.h:39
bool runInstMgrForUpdt()
Definition: odinst.h:39
Definition: odinst.h:42
Definition: odinst.h:42
void startInstManagementWithRelDir(const char *)
bool updatesAvailable()
Set of BufferString objects.
Definition: bufstringset.h:28
OpendTect Installation.
Definition: odinst.h:23
RelType
Definition: odinst.h:41
Definition: odinst.h:41
void setAutoInstType(AutoInstType)
const char * getPkgVersion(const char *file_pkg_basenm)
For example, the Base pkg has "base".
Definition: odinst.h:41
Settings class holds the user settings. It is an IOPar.
Definition: settings.h:34
void startInstManagement()
bool autoInstTypeIsFixed()
BufferString GetInstallerDir()
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
RelType getRelType()
bool canInstall()
Definition: odinst.h:39
BufferString getInstallerPlfDir()
const BufferStringSet & autoInstTypeUserMsgs()
BufferString GetRelInfoDir()
Definition: odinst.h:39
bool isErrPkgVersion(const char *s)
Definition: odinst.h:35
const char * sKeyAutoInst()

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