Represents a workspace with its metadata and settings. More...
#include <Workspace.h>
Public Member Functions | |
| std::string | ToJson () const |
| Serialize workspace to JSON string. | |
| bool | IsPathValid () const |
| Check if the workspace path is valid and exists. | |
Static Public Member Functions | |
| static Workspace | FromJson (const std::string &json) |
| Deserialize workspace from JSON string. | |
Public Attributes | |
| std::string | name |
| std::string | description |
| std::filesystem::path | path |
| std::chrono::system_clock::time_point | lastOpened |
| std::chrono::system_clock::time_point | created |
| bool | isValid = true |
Represents a workspace with its metadata and settings.
A workspace is a project directory that contains user-specific content like scenes, custom materials, scripts, and models. Global assets (primitives like cube, sphere) are stored separately and shared across all workspaces.
Workspace structure:
|
static |
| bool Workspace::IsPathValid | ( | ) | const |
Check if the workspace path is valid and exists.
| std::string Workspace::ToJson | ( | ) | const |
Serialize workspace to JSON string.
| std::chrono::system_clock::time_point Workspace::created |
| std::string Workspace::description |
| bool Workspace::isValid = true |
| std::chrono::system_clock::time_point Workspace::lastOpened |
| std::string Workspace::name |
| std::filesystem::path Workspace::path |