MCPcopy Create free account
hub / github.com/COVESA/vsomeip / base_path

Function base_path

implementation/utility/src/utility.cpp:35–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#define VSOMEIP_LOG_PREFIX "util"
34
35static std::string base_path() {
36 static std::string* path = []() {
37 std::string* p;
38 if (const char* e = VSOMEIP_GETENV(VSOMEIP_ENV_BASE_PATH); e != nullptr && e[0] != '\0') {
39 p = new std::string(e);
40 } else {
41 p = new std::string(VSOMEIP_BASE_PATH);
42 }
43
44 if (p->empty() || p->back() != '/') {
45 p->push_back('/');
46 }
47
48 return p;
49 }();
50
51 return *path;
52}
53
54namespace vsomeip_v3 {
55

Callers 3

is_routing_managerMethod · 0.85
remove_lockfileMethod · 0.85
get_base_pathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected