SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Class used to control how an attribute is to be copied. More...
#include <CopyAssignmentOptions.h>
Public Member Functions | |
std::string | convertToString (const std::string &prefix="") const |
Converts the current option state into a string that is prefixed by prefix. | |
bool | copyUUID () const |
Methods to set and retrieve the copyUUID Option. More... | |
void | setCopyUUID (bool val) |
Methods to set and retrieve the copyUUID Option. More... | |
bool | copyDefinition () const |
Methods to set and retrieve the copyDefinition Option. More... | |
void | setCopyDefinition (bool val) |
Methods to set and retrieve the copyDefinition Option. More... | |
Protected Attributes | |
bool | m_copyUUID = false |
bool | m_copyDefinition = false |
Class used to control how an attribute is to be copied.
This is primarily used by smtk::attribute::Resource::copyAttribute but can be also indirectly by smtk::attribute::Attribute::assign and smtk::attribute::Item::assign.
|
inline |
Methods to set and retrieve the copyDefinition Option.
If set, this indicates that if the source attribute's definition (by typename) does not exist in the resource making the copy, then copy the definition as well. This can recursively cause other definitions to be copied. Note : the copying process will fail if this option is not set and the source attribute definition's typename does not exist in the targeted resource.
|
inline |
Methods to set and retrieve the copyUUID Option.
If set, this indicates that copied attributes should have the same UUID as the original. Note : the copying process will fail if the copied attribute would reside in the same resource as the original.
|
inline |
Methods to set and retrieve the copyDefinition Option.
If set, this indicates that if the source attribute's definition (by typename) does not exist in the resource making the copy, then copy the definition as well. This can recursively cause other definitions to be copied. Note : the copying process will fail if this option is not set and the source attribute definition's typename does not exist in the targeted resource.
|
inline |
Methods to set and retrieve the copyUUID Option.
If set, this indicates that copied attributes should have the same UUID as the original. Note : the copying process will fail if the copied attribute would reside in the same resource as the original.