DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
DekiEditor::ToolchainComponentManager Class Reference

Manages a builder's toolchain components as its BuilderDefinition describes them: detects them, downloads and installs them, and checks for updates. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/build/ToolchainComponentManager.h>

Public Member Functions

 ToolchainComponentManager ()
 ~ToolchainComponentManager ()
void CheckForUpdates (std::function< void()> onComplete=nullptr)
 Checks the GitHub API for newer versions, asynchronously.
std::vector< ToolchainComponent > GetComponents () const
 Runs the detection rules and lists the components for the UI.
const BuilderDefinition & GetDefinition () const
void Initialize (const BuilderDefinition &def)
void InstallComponent (const std::string &componentId, BuildProgressCallback cb=nullptr)
 Downloads and extracts a component, asynchronously.
std::vector< std::string > InstalledPathEntries () const
 The PATH entries (ComponentDef::pathEntries) of every installed component, absolute and in definition order, for this platform.
bool IsBusy () const
 Whether an operation is in progress.
bool IsInitialized () const
 True once initialised with a valid definition.
void SetupComponent (const std::string &componentId, BuildProgressCallback cb=nullptr)
 Runs the postInstall script of an installed component, asynchronously.

Detailed Description

Manages a builder's toolchain components as its BuilderDefinition describes them: detects them, downloads and installs them, and checks for updates.

Each ITargetBuilder owns one, initialised from its builder JSON.

Constructor & Destructor Documentation

◆ ToolchainComponentManager()

DekiEditor::ToolchainComponentManager::ToolchainComponentManager ( )

◆ ~ToolchainComponentManager()

DekiEditor::ToolchainComponentManager::~ToolchainComponentManager ( )

Member Function Documentation

◆ CheckForUpdates()

void DekiEditor::ToolchainComponentManager::CheckForUpdates ( std::function< void()> onComplete = nullptr)

Checks the GitHub API for newer versions, asynchronously.

◆ GetComponents()

std::vector< ToolchainComponent > DekiEditor::ToolchainComponentManager::GetComponents ( ) const

Runs the detection rules and lists the components for the UI.

◆ GetDefinition()

const BuilderDefinition & DekiEditor::ToolchainComponentManager::GetDefinition ( ) const
inline

◆ Initialize()

void DekiEditor::ToolchainComponentManager::Initialize ( const BuilderDefinition & def)

◆ InstallComponent()

void DekiEditor::ToolchainComponentManager::InstallComponent ( const std::string & componentId,
BuildProgressCallback cb = nullptr )

Downloads and extracts a component, asynchronously.

◆ InstalledPathEntries()

std::vector< std::string > DekiEditor::ToolchainComponentManager::InstalledPathEntries ( ) const

The PATH entries (ComponentDef::pathEntries) of every installed component, absolute and in definition order, for this platform.

◆ IsBusy()

bool DekiEditor::ToolchainComponentManager::IsBusy ( ) const
inline

Whether an operation is in progress.

◆ IsInitialized()

bool DekiEditor::ToolchainComponentManager::IsInitialized ( ) const
inline

True once initialised with a valid definition.

◆ SetupComponent()

void DekiEditor::ToolchainComponentManager::SetupComponent ( const std::string & componentId,
BuildProgressCallback cb = nullptr )

Runs the postInstall script of an installed component, asynchronously.


The documentation for this class was generated from the following file: