OpenCPN Partial API docs
Loading...
Searching...
No Matches
plugin_paths.h
1#include <string>
2#include <vector>
3
4
6std::string join(std::vector<std::string> v, char c);
7
9public:
11 static PluginPaths* getInstance();
12
14 std::string UserLibdir() { return m_userLibdir; };
15
17 std::string UserBindir() { return m_userBindir; }
18
23 std::string UserDatadir() { return m_userDatadir; }
24
26 std::vector<std::string> Libdirs() { return m_libdirs; }
27
29 std::vector<std::string> Bindirs() { return m_bindirs; };
30
35 std::vector<std::string> Datadirs() { return m_datadirs; }
36
38 std::string Homedir() const { return m_home; }
39
40private:
42 void initWindowsPaths();
43 void initFlatpackPaths();
44 void initLinuxPaths();
45 void initApplePaths();
46 void initAndroidPaths();
47
48 std::string m_home;
49 std::string m_userDatadir;
50 std::string m_userBindir;
51 std::string m_userLibdir;
52 std::vector<std::string> m_libdirs;
53 std::vector<std::string> m_bindirs;
54 std::vector<std::string> m_datadirs;
55};
std::vector< std::string > Libdirs()
List of directories from which we load plugins.
Definition: plugin_paths.h:26
std::string UserLibdir()
The single, user-writable directory for installing .dll files.
Definition: plugin_paths.h:14
std::string Homedir() const
home directory, convenience stuff.
Definition: plugin_paths.h:38
std::string UserDatadir()
The single, user-writable common parent for plugin data directories, typically ending in 'plugins'.
Definition: plugin_paths.h:23
std::vector< std::string > Bindirs()
'List of directories for plugin binary helpers.
Definition: plugin_paths.h:29
std::string UserBindir()
The single, user-writable directory for installing helper binaries.
Definition: plugin_paths.h:17
std::vector< std::string > Datadirs()
List of directories containing plugin data, each element typically ends in 'plugins'.
Definition: plugin_paths.h:35
static PluginPaths * getInstance()
Return the singleton instance.