MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / GetWorkspaceLocation

Function GetWorkspaceLocation

src/Core/System/Workspace.cpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace obe::System::Workspace
9{
10 std::string GetWorkspaceLocation(const std::string& workspaceName)
11 {
12 if (WorkspaceExists(workspaceName))
13 {
14 return vili::parser::from_file("Workspace/Workspaces.vili")
15 .at(workspaceName)
16 .at("path");
17 }
18 throw Exceptions::UnknownWorkspace(workspaceName, ListWorkspaces(), EXC_INFO);
19 }
20
21 bool WorkspaceExists(const std::string& workspaceName)
22 {

Callers 1

LoadFunction · 0.85

Calls 5

WorkspaceExistsFunction · 0.85
from_fileFunction · 0.85
UnknownWorkspaceClass · 0.85
ListWorkspacesFunction · 0.85
atMethod · 0.45

Tested by

no test coverage detected