Share

Library class

The Workspace object is associated to a unique Library. Together, the Workspace and the Library are responsible for loading and holding all Bifrost resources. You can access the Library using the Workspace's getLibrary() method.

Loading a Bifrost definition JSON file

The Library's loadDefinitionFile() method allows you to load a Bifrost definition JSON file directly, as an alternative to calling the Workspace::loadConfigFiles() method with a Bifrost config JSON file and a "jsonLibs" section pointing directly to this specific definition file. The loadDefinitionFile() method will read and attempt to load all types, operators, compounds and terminal nodes listed in the definition JSON file. This method also enumerates all compounds contained in the definition file just loaded and returns their fully-qualified names in the nameList output argument. These compound names could be useful to identify a compound you may want to select for execution through the GraphContainer::setGraph() method.

Please refer to the BifrostGraph::Executor::Library class in the API reference section.

Was this information helpful?