tesseratos::ProjectManager class

System argument which can be used to manage the currently loaded project.

Constructors, destructors, conversion operators

ProjectManager(State& state, cubos::engine::Assets& assets, Debugger& debugger)
Constructs.

Public functions

auto open(std::string projectOSPath, std::string binaryOSPath) -> bool
Opens a project directory.
auto open() const -> bool
Checks whether a project is currently open.
void close()
Closes the currently open project.
auto launch() -> bool
Launches the project's binary and attaches the debugger.
void terminate()
Stops the project's binary.

Function documentation

tesseratos::ProjectManager::ProjectManager(State& state, cubos::engine::Assets& assets, Debugger& debugger)

Constructs.

Parameters
state State of the project manager.
assets Asset manager.
debugger Debugger.

bool tesseratos::ProjectManager::open(std::string projectOSPath, std::string binaryOSPath)

Opens a project directory.

Parameters
projectOSPath Project's directory path in the operating system.
binaryOSPath Project's binary directory path in the operating system.
Returns Whether the project could be opened successfully.

The given project directory is mounted in the /project directory in the virtual file system. Unmounts any previously opened project directory.

bool tesseratos::ProjectManager::open() const

Checks whether a project is currently open.

Returns Whether a project is currently open.

bool tesseratos::ProjectManager::launch()

Launches the project's binary and attaches the debugger.

Returns Whether the project could be launched successfully.

If the binary is already running, it is stopped first.