SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Class that represents functionality common to both attribute and item assignments. More...
#include <CopyAssignmentOptions.h>
Public Types | |
using | ObjectMapType = std::unordered_map< smtk::common::UUID, smtk::resource::PersistentObject * > |
A type alias for the container holding the UUID translation table. | |
Public Member Functions | |
void | setObjectMapping (ObjectMapType *val) |
const ObjectMapType * | objectMapping () const |
template<typename ObjectType > | |
ObjectType * | targetObjectFromSourceId (const smtk::common::UUID &sourceId) const |
A convenience to fetch an entry from object mapping (if set), casting it to the given type. More... | |
virtual std::string | convertToString (const std::string &prefix="") const |
Protected Attributes | |
ObjectMapType * | m_objectMapping = nullptr |
Class that represents functionality common to both attribute and item assignments.
Currently this is limited to providing a mapping of Persistent Object information used to determine if the Persistent Object information stored in the source needs to be mapped to a different Persistent Object w/r to the copy.
|
inline |
A convenience to fetch an entry from object mapping (if set), casting it to the given type.
Be aware this method may return a null pointer if (a) there is no mapping, (b) there is no object that corresponds to the input sourceId or (c) the object cannot be cast to ObjectType.