The ResourceTarget class.
More...
#include <murl_graph_resource_target.h>
template<class ObjectType, UInt32 MIN_NUMBER_OF_RESOURCES>
interface Murl::Graph::ResourceTarget< ObjectType, MIN_NUMBER_OF_RESOURCES >
The ResourceTarget class.
This class implements an IGenericResourceTarget that can reference at most one resource object. The MIN_NUMBER_OF_RESOURCES template parameter represents the minimum number of referenced resources that must be present for the Init() method to succeed. May be either 0 or 1.
◆ ResourceTarget()
template<class ObjectType , UInt32 MIN_NUMBER_OF_RESOURCES>
Constructor taking a single (optional) object.
- Parameters
-
object | The object or null. |
◆ DeserializeResourceId()
template<class ObjectType , UInt32 MIN_NUMBER_OF_RESOURCES>
Deserialize the single target resource ID from a given tracker.
- Parameters
-
tracker | The tracker to deserialize. |
- Returns
- true if successful.
◆ GetResourceId()
template<class ObjectType , UInt32 MIN_NUMBER_OF_RESOURCES>
Get the single resource ID.
- Returns
- The resource ID, or an empty string if no resource is referenced.
◆ GetResource()
template<class ObjectType , UInt32 MIN_NUMBER_OF_RESOURCES>
Get the single resource object.
- Returns
- The resource object, or null if none is referenced.
The documentation for this interface was generated from the following file:
- murl_graph_resource_target.h