The entity resolver is used to resolve MDL modules and resources in such modules. More...
Public Member Functions | |
virtual IMdl_resolved_module * | resolve_module (const char *module_name, const char *owner_file_path, const char *owner_name, Sint32 pos_line, Sint32 pos_column, IMdl_execution_context *context=0)=0 |
Resolves a module name. More... | |
virtual IMdl_resolved_resource * | resolve_resource (const char *file_path, const char *owner_file_path, const char *owner_name, Sint32 pos_line, Sint32 pos_column, IMdl_execution_context *context=0)=0 |
Resolves a resource file path. More... | |
Additional Inherited Members | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > | Self |
Own type. More... | |
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > | IID |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
The entity resolver is used to resolve MDL modules and resources in such modules.
This interface is used in two ways: (a) to make the resolver of the MDL compiler available to users, and (b) to control how the MDL compiler resolves modules and resources.
|
pure virtual |
Resolves a module name.
If owner_name
and owner_file_path
are not provided, no relative module names can be resolved.
module_name | The relative or absolute MDL module name to resolve. |
owner_file_path | The optional file path of the owner (or NULL if not available). |
owner_name | The absolute name of the owner (or NULL if not available). |
pos_line | The line of the corresponding source code location (or 0 if not available). |
pos_column | The column of the corresponding source code location (or 0 if not available). |
context | The execution context which can be used to retrieve messages. |
NULL
in case of errors.
|
pure virtual |
Resolves a resource file path.
If owner_name
and owner_file_path
are not provided, no relative paths can be resolved. The method can also be used to resolve files in an MDLE, e.g, to get a resource set for embedded UDIM textures.
file_path | The MDL file path of the resource to resolve. In addition, for resources from MDLE files, it is also possible to provide the absolute OS file system path to the MDLE file (with slashes instead of backslashes on Windows), followed by a colon, followed by the relative path inside the MDLE container. |
owner_file_path | The optional file path of the owner (or NULL if not available). |
owner_name | The absolute name of the owner (or NULL if not available). |
pos_line | The line of the corresponding source code location (or 0 if not available). |
pos_column | The column of the corresponding source code location (or 0 if not available). |
context | The execution context which can be used to retrieve messages. |
NULL
in case of errors.