About
A GeMarker object contains an unique ID. It is used to identify BaseList2D based objects.
- Warning
- These markers change when the source object is copied or when the document is re-loaded.
Access
const String objectName =
object->GetName();
if (foundObject != nullptr)
{
if (foundObjectMarker.
Compare(marker) == 0)
else
}
The marker of a copy is different than the marker of the original object:
const GeMarker& originalMarker =
object->GetMarker();
if (clone == nullptr)
if (cloneMarker.
IsEqual(originalMarker) ==
false)
See also BaseList2D Marker.
Allocation/Deallocation
GeMarker objects can be created with the usual tools:
const Bool invalidMarkerA = markerA ==
nullptr;
const Bool invalidMarkerB = markerB ==
nullptr;
if (invalidMarkerA || invalidMarkerB)
if (markerA->
IsEqual(*markerB) ==
false)
Functionality
GeMarker objects can be handled with:
if (activeDocument == nullptr)
while (document != nullptr)
{
if (docMarker.
IsEqual(activeDocMarker))
{
}
else
{
}
}
Read and Write
GeMarker objects can be stored in a HyperFile.
Further Reading