Enzo
Loading...
Searching...
No Matches
enzo::nt::NodeLoader Class Reference

The startup pass that fills the node type table from the node folders on disk. More...

#include <NodeLoader.h>

Static Public Member Functions

static void loadNodes ()
 Reads every node folder and registers what it finds.
 
static std::filesystem::path getNodesDirectory ()
 Returns the directory the node folders live in.
 

Detailed Description

The startup pass that fills the node type table from the node folders on disk.

Every node is a folder holding a node.yaml, and the builtin nodes load through the same path an installed one does. Every folder is read up front so the tab menu has every node's label the moment it opens, while a node's shared library only opens once a node from it is loaded.

Note
Nodes whose implementation cannot be resolved are reported and skipped.

Member Function Documentation

◆ getNodesDirectory()

std::filesystem::path enzo::nt::NodeLoader::getNodesDirectory ( )
static

Returns the directory the node folders live in.

Note
Throws std::runtime_error when no candidate directory exists.

◆ loadNodes()

void enzo::nt::NodeLoader::loadNodes ( )
static

Reads every node folder and registers what it finds.

Note
Does nothing when called again.

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