Vuo
1.1.1
|
A set of node classes, types, library modules, and search paths for other dependencies.
This is public only so that the static variable VuoCompiler::sharedEnvironment can be defined.
Public Member Functions | |
Environment (bool isOwner) | |
Creates an empty environment. | |
~Environment (void) | |
Destructor. | |
map< string, VuoCompilerNodeClass * > | getNodeClasses (void) |
Returns the node classes loaded, plus specialized node classes generated by the compiler. | |
map< string, VuoCompilerType * > | getTypes (void) |
Returns the types loaded. | |
map< string, VuoCompilerModule * > | getLibraryModules (void) |
Returns the library modules loaded. | |
VuoNodeSet * | findNodeSet (const string &name) |
Returns the node set with the given name, or null no such node set been loaded. | |
void | addModuleSearchPath (const string &path) |
Adds a search path for node classes, types, and library modules. | |
vector< string > | getModuleSearchPaths (void) |
Returns the search paths for node classes, types, and library modules. | |
void | addHeaderSearchPath (const string &path) |
Adds a search path for header/include files. | |
vector< string > | getHeaderSearchPaths (void) |
Returns the search paths for header/include files. | |
void | addLibrarySearchPath (const string &path) |
Adds a search path for libraries (other than Vuo library modules). | |
vector< string > | getLibrarySearchPaths (void) |
Returns the search paths for libraries (other than Vuo library modules). | |
void | addFrameworkSearchPath (const string &path) |
Adds a search path for frameworks. | |
vector< string > | getFrameworkSearchPaths (void) |
Returns the search paths for frameworks. | |
void | loadModulesIntoCombinedEnvironment (Environment *myEnvironment, Environment *sharedEnvironment, bool shouldLoadAllModules, set< string > &modulesToLoad) |
Loads node classes and types from any directories in moduleSearchPaths that have not already been loaded. | |
void | addNodeClassToCombinedEnvironment (VuoCompilerNodeClass *nodeClass, Environment *myEnvironment, Environment *sharedEnvironment) |
Adds a node class to use when linking a composition. | |
void | updateCombinedEnvironment (Environment *myEnvironment, Environment *sharedEnvironment) |
Updates this environment to consist of myEnvironment layered on top of sharedEnvironment. | |
void | addSearchPathsToSharedEnvironment (void) |
Adds the search paths needed by all compositions to this environment. | |
VuoCompiler::Environment::Environment | ( | bool | isOwner | ) |
Creates an empty environment.
VuoCompiler::Environment::~Environment | ( | void | ) |
Destructor.
void VuoCompiler::Environment::addFrameworkSearchPath | ( | const string & | path | ) |
Adds a search path for frameworks.
void VuoCompiler::Environment::addHeaderSearchPath | ( | const string & | path | ) |
Adds a search path for header/include files.
void VuoCompiler::Environment::addLibrarySearchPath | ( | const string & | path | ) |
Adds a search path for libraries (other than Vuo library modules).
void VuoCompiler::Environment::addModuleSearchPath | ( | const string & | path | ) |
Adds a search path for node classes, types, and library modules.
void VuoCompiler::Environment::addNodeClassToCombinedEnvironment | ( | VuoCompilerNodeClass * | nodeClass, |
Environment * | myEnvironment, | ||
Environment * | sharedEnvironment | ||
) |
Adds a node class to use when linking a composition.
Typically, node classes are loaded from file with addModuleSearchPath(). This function is useful if adding a node class that is generated at compile time.
This function should be called on VuoCompiler::combinedEnvironment.
void VuoCompiler::Environment::addSearchPathsToSharedEnvironment | ( | void | ) |
Adds the search paths needed by all compositions to this environment.
This function should be called on VuoCompiler::sharedEnvironment.
This function may only be called on dispatch queue environmentQueue
.
VuoNodeSet * VuoCompiler::Environment::findNodeSet | ( | const string & | name | ) |
Returns the node set with the given name, or null no such node set been loaded.
vector< string > VuoCompiler::Environment::getFrameworkSearchPaths | ( | void | ) |
Returns the search paths for frameworks.
vector< string > VuoCompiler::Environment::getHeaderSearchPaths | ( | void | ) |
Returns the search paths for header/include files.
map< string, VuoCompilerModule * > VuoCompiler::Environment::getLibraryModules | ( | void | ) |
Returns the library modules loaded.
vector< string > VuoCompiler::Environment::getLibrarySearchPaths | ( | void | ) |
Returns the search paths for libraries (other than Vuo library modules).
vector< string > VuoCompiler::Environment::getModuleSearchPaths | ( | void | ) |
Returns the search paths for node classes, types, and library modules.
map< string, VuoCompilerNodeClass * > VuoCompiler::Environment::getNodeClasses | ( | void | ) |
Returns the node classes loaded, plus specialized node classes generated by the compiler.
map< string, VuoCompilerType * > VuoCompiler::Environment::getTypes | ( | void | ) |
Returns the types loaded.
void VuoCompiler::Environment::loadModulesIntoCombinedEnvironment | ( | Environment * | myEnvironment, |
Environment * | sharedEnvironment, | ||
bool | shouldLoadAllModules, | ||
set< string > & | modulesToLoad | ||
) |
Loads node classes and types from any directories in moduleSearchPaths that have not already been loaded.
This function should be called on VuoCompiler::combinedEnvironment.
void VuoCompiler::Environment::updateCombinedEnvironment | ( | Environment * | myEnvironment, |
Environment * | sharedEnvironment | ||
) |
Updates this environment to consist of myEnvironment layered on top of sharedEnvironment.
This function should be called on VuoCompiler::combinedEnvironment.
This function may only be called on dispatch queue environmentQueue
.