The ResourceTarget class. More...
#include "murl_graph_resource_target.h"
Public Member Functions | |
ResourceTarget () | |
The constructor. | |
ResourceTarget (ObjectType *object) | |
Constructor taking a single (optional) object. More... | |
Bool | DeserializeResourceId (IDeserializeAttributeTracker *tracker) |
Deserialize the single target resource ID from a given tracker. More... | |
const String & | GetResourceId () const |
Get the single resource ID. More... | |
const ObjectType * | GetResource () const |
Get the single resource object. More... | |
Detailed Description
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.
Constructor & Destructor Documentation
◆ ResourceTarget()
|
inline |
Constructor taking a single (optional) object.
- Parameters
-
object The object or null.
Member Function Documentation
◆ DeserializeResourceId()
|
inline |
Deserialize the single target resource ID from a given tracker.
- Parameters
-
tracker The tracker to deserialize.
- Returns
- true if successful.
References Murl::Graph::IDeserializeAttributeTracker::GetAttributeValue(), and Murl::Graph::IDeserializeAttributeTracker::MakeResourceIdAbsolute().
◆ GetResourceId()
|
inline |
Get the single resource ID.
- Returns
- The resource ID, or an empty string if no resource is referenced.
◆ GetResource()
|
inline |
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