MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / GetFrameworkDir

Function GetFrameworkDir

framework/src/util/Utils.cpp:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 std::string const FWDIR_DEFAULT = "fwdir";
113
114 std::string
115 GetFrameworkDir(CoreBundleContext* ctx)
116 {
117 auto it = ctx->frameworkProperties.find(Constants::FRAMEWORK_STORAGE);
118 if (it == ctx->frameworkProperties.end() || it->second.Type() != typeid(std::string))
119 {
120 return FWDIR_DEFAULT;
121 }
122 return any_cast<std::string>(it->second);
123 }
124
125 std::string
126 GetPersistentStoragePath(CoreBundleContext* ctx, std::string const& leafDir, bool create)

Callers 1

GetPersistentStoragePathFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected