![]() |
Murl Engine API
Version 2018.3
|
The abstract base class for a resource object. More...
#include <murl_resource_object.h>
The abstract base class for a resource object.
When specified within an XML resource package, there is a common set of resource attributes that can be used to control e.g. inclusion or exclusion of a specific resource for a given run-time configuration. All different resource objects must use the <Resource> tag for specifying a resource file.
Example of a package.xml file inside the murl_startup.murlres folder defining an XML package:
id="" [String]
The ID of the resource object. If a graph node accepts a resource object as an input attribute (e.g. "imageResourceId"), this resource must be specified in the form "<Package ID>:<Resource ID>".
type="DEFAULT" [IEnums::ResourceType]
The optional specific resource type.
fileName="" [String]
The actual file name of the resource on disk. Sub-directories can be included in the file name; the specified path is relative to the directory where the "package.xml" file is placed.
excludeForX="" [String]
A comma-separated list of enumeration values, to specify for which configuration(s) this resource should be excluded. See the "includeForX" attribute below.
includeForX="" [String]
A comma-separated list of enumeration values, to specify for which configuration(s) this resource should be included. Resources in a package that have one or more condition attributes are evaluated in a top-down manner until the first match is found for the specified inclusions and/or exclusions. Possible values for X (e.g. "includeForLanguages") and their data types:
Additional Inherited Members | |
![]() | |
typedef Array< const ClassInfo *> | ClassInfoArray |
Definition of an array of ClassInfo objects. More... | |
![]() | |
virtual Bool | CreateBinary (Data &data) const =0 |
Create a binary representation from the object. More... | |
virtual IEnums::ResourceType | GetResourceType () const =0 |
Get the object's actual resource type. More... | |
![]() | |
virtual | ~IFactoryObject () |
The destructor. More... | |
virtual const ClassInfo * | GetObjectClassInfo () const=0 |
Get the object instance's class info, if present. More... | |
virtual void | ResetObjectProperties ()=0 |
Reset the object instance's properties to their default values. | |
![]() | |
static const PropertyInfo * | GetPropertyInfo () |
Get the class' property info struct. More... | |
static const AttributeInfo * | GetAttributeInfo () |
Get the class' attribute info struct. More... | |
static void | ResetProperties (IFactoryObject< IObject > *object) |
Reset an object instance's properties to their default values. More... | |