ON_ManifestIdentificationMap is used to record a map from a source manifest to a destination manifest when the index or id values change. This is common when reading and writing archives and when merging models. More...
#include <opennurbs_archive.h>
Public Member Functions | |
ON_ManifestMap () ON_NOEXCEPT | |
ON_ManifestMap (const ON_ManifestMap &) | |
~ON_ManifestMap () | |
bool | AddMapItem (const class ON_ManifestMapItem &map_item) |
bool | GetAndValidateDestinationId (ON_ModelComponent::Type component_type, const ON_UUID &source_component_id, const ON_ComponentManifest &destination_manifest, ON_UUID *destination_component_id) const |
bool | GetAndValidateDestinationIndex (ON_ModelComponent::Type component_type, int source_component_index, const ON_ComponentManifest &destination_manifest, int *destination_component_index) const |
bool | GetAndValidateDestinationIndex (ON_ModelComponent::Type component_type, const ON_UUID &source_component_id, const ON_ComponentManifest &destination_manifest, int *destination_component_index) const |
bool | IsEmpty () const |
bool | IsNotEmpty () const |
unsigned int | MapItemCount () const |
const class ON_ManifestMapItem & | MapItemFromSourceId (const ON_UUID &source_item_id) const |
const class ON_ManifestMapItem & | MapItemFromSourceIndex (ON_ModelComponent::Type component_type, int source_component_index) const |
ON_ManifestMap & | operator= (const ON_ManifestMap &) |
bool | UpdatetMapItemDestination (const class ON_ManifestMapItem &map_item) |
Static Public Attributes | |
static const ON_ManifestMap | Empty |
ON_ManifestIdentificationMap is used to record a map from a source manifest to a destination manifest when the index or id values change. This is common when reading and writing archives and when merging models.
ON_ManifestMap::ON_ManifestMap | ( | ) |
ON_ManifestMap::~ON_ManifestMap | ( | ) |
ON_ManifestMap::ON_ManifestMap | ( | const ON_ManifestMap & | ) |
bool ON_ManifestMap::AddMapItem | ( | const class ON_ManifestMapItem & | map_item | ) |
bool ON_ManifestMap::GetAndValidateDestinationId | ( | ON_ModelComponent::Type | component_type, |
const ON_UUID & | source_component_id, | ||
const ON_ComponentManifest & | destination_manifest, | ||
ON_UUID * | destination_component_id | ||
) | const |
bool ON_ManifestMap::GetAndValidateDestinationIndex | ( | ON_ModelComponent::Type | component_type, |
int | source_component_index, | ||
const ON_ComponentManifest & | destination_manifest, | ||
int * | destination_component_index | ||
) | const |
bool ON_ManifestMap::GetAndValidateDestinationIndex | ( | ON_ModelComponent::Type | component_type, |
const ON_UUID & | source_component_id, | ||
const ON_ComponentManifest & | destination_manifest, | ||
int * | destination_component_index | ||
) | const |
bool ON_ManifestMap::IsEmpty | ( | ) | const |
bool ON_ManifestMap::IsNotEmpty | ( | ) | const |
unsigned int ON_ManifestMap::MapItemCount | ( | ) | const |
Some of these items may not change id or index.
const class ON_ManifestMapItem& ON_ManifestMap::MapItemFromSourceId | ( | const ON_UUID & | source_item_id | ) | const |
const class ON_ManifestMapItem& ON_ManifestMap::MapItemFromSourceIndex | ( | ON_ModelComponent::Type | component_type, |
int | source_component_index | ||
) | const |
ON_ManifestMap& ON_ManifestMap::operator= | ( | const ON_ManifestMap & | ) |
bool ON_ManifestMap::UpdatetMapItemDestination | ( | const class ON_ManifestMapItem & | map_item | ) |
map_item | [in] The source settings must exacty match source settings of an existing map. The destination settings are the new values to assign. Return: True if a mapping was successfully updated (even when the destation settings did not change). |
|
static |