HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file composition.RecursiveLoader by barry
expand copy to clipboardexpand
uses data.String

/*
 {"description" : "Load and link (using default components) a component from a file into main memory."}
*/

interface RecursiveLoader{
	/* {"@description" : "Load a component from a file into main memory, plus all of its needed support components (recursively). The set of required interfaces not to follow is given by ignoreIntfs."} */
	LoadedComponents load(char path[], opt String ignoreIntfs[])
	
	}

/* {"description" : "This type represents a single loaded component."}	*/
data LoadedComponent {
	/* {"@description" : "The IDC of the loaded component."} */
	IDC class
	/* {"@description" : "The file system path from which this component was loaded."} */
	char path[]
	}

/* {"description" : "This type represents a set of recursively loaded components, which started at mainComponent."}	*/
data LoadedComponents {
	/* {"@description" : "The main/origin component from a recursive load procedure."} */
	IDC mainComponent
	
	/* {"@description" : "A text-based representation of the wiring graph between the components in loadedComponents."} */
	char graph[]
	/* {"@description" : "The set of loaded components."} */
	LoadedComponent loadedComponents[]
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n composition.RecursiveLoader -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation