Choreonoid  1.8
ExecutablePath.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_EXECUTABLE_PATH_H
7 #define CNOID_UTIL_EXECUTABLE_PATH_H
8 
9 #include <string>
10 #include <cnoid/stdx/filesystem>
11 #include <cnoid/Config>
12 #include "exportdecl.h"
13 
14 namespace cnoid {
15 
16 CNOID_EXPORT const std::string& executableFile();
17 CNOID_EXPORT const std::string& executableBasename();
18 CNOID_EXPORT const std::string& executableDir();
19 CNOID_EXPORT const std::string& executableTopDir();
20 CNOID_EXPORT stdx::filesystem::path executableTopDirPath();
21 CNOID_EXPORT const std::string& pluginDir();
22 CNOID_EXPORT stdx::filesystem::path pluginDirPath();
23 CNOID_EXPORT const std::string& shareDir();
24 CNOID_EXPORT stdx::filesystem::path shareDirPath();
25 
26 [[deprecated("Use cnoid::executableFile().")]]
27 inline const std::string& executablePath() { return executableFile(); }
28 
29 [[deprecated("Use cnoid::executableDir().")]]
30 inline const std::string& executableDirectory() { return executableDir(); }
31 
32 [[deprecated("Use cnoid::executableTopDir().")]]
33 inline const std::string& executableTopDirectory() { return executableTopDir(); }
34 
35 [[deprecated("Use cnoid::pluginDir().")]]
36 inline const std::string& pluginDirectory() { return pluginDir(); }
37 
38 [[deprecated("Use cnoid::shareDir().")]]
39 inline const std::string& shareDirectory() { return shareDir(); }
40 
41 }
42 
43 #endif
cnoid::pluginDir
const std::string & pluginDir()
Definition: ExecutablePath.cpp:185
cnoid::executableTopDirectory
const std::string & executableTopDirectory()
Definition: ExecutablePath.h:33
cnoid::executableDirectory
const std::string & executableDirectory()
Definition: ExecutablePath.h:30
cnoid::pluginDirPath
stdx::filesystem::path pluginDirPath()
Definition: ExecutablePath.cpp:193
cnoid::shareDir
const std::string & shareDir()
Definition: ExecutablePath.cpp:198
cnoid::pluginDirectory
const std::string & pluginDirectory()
Definition: ExecutablePath.h:36
cnoid::executableDir
const std::string & executableDir()
Definition: ExecutablePath.cpp:164
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::shareDirPath
stdx::filesystem::path shareDirPath()
Definition: ExecutablePath.cpp:206
cnoid::executableTopDirPath
stdx::filesystem::path executableTopDirPath()
Definition: ExecutablePath.cpp:180
cnoid::executablePath
const std::string & executablePath()
Definition: ExecutablePath.h:27
cnoid::executableFile
const std::string & executableFile()
Definition: ExecutablePath.cpp:148
cnoid::shareDirectory
const std::string & shareDirectory()
Definition: ExecutablePath.h:39
cnoid::executableTopDir
const std::string & executableTopDir()
Definition: ExecutablePath.cpp:172
cnoid::executableBasename
const std::string & executableBasename()
Definition: ExecutablePath.cpp:156