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

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