0% found this document useful (0 votes)
14 views1 page

Special Data Types

The document discusses special data types in ITK, specifically focusing on the tag_t type used to identify objects. It explains how tags can be compared and how an unset tag_t variable is assigned a NULLTAG value. An example code snippet illustrates how to find and create a dataset using these tags.

Uploaded by

Luis JIMÉNEZ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Special Data Types

The document discusses special data types in ITK, specifically focusing on the tag_t type used to identify objects. It explains how tags can be compared and how an unset tag_t variable is assigned a NULLTAG value. An example code snippet illustrates how to find and create a dataset using these tags.

Uploaded by

Luis JIMÉNEZ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

6/6/25, 8:45 Special data types

Special data types


All objects in the ITK are identified by tags of C type tag_t. A run-time unique identifier isolates the client code using the object from its representation in memory, making
it safe from direct pointer access.

Tags may be compared by use of the C language == and != operators. An unset tag_t variable is assigned the NULLTAG null value. If two tags have the same value, they
reference the same object. For example:

#include <tc/tc.h>
#include <ae/ae.h>
{
tag_t dataset_tag;
int error_code;
login, etc. ...
error_code = AE_find_dataset ("my special dataset", &dataset_tag)
if( error_code ==ITK_ok )
{ if (dataset_tag == NULLTAG)
{ /*
* Could not find my special dataset, so go create one.
*/
error_code = AE_create_dataset_with_id (....
}
}
else
{
report error ....

Look up more details


Syntax conventions used in this guide

Learn more
Format
Variable naming conventions
Class hierarchy
Include files

Quick links
Guía de iniciación en Teamcenter
Conceptos básicos de Teamcenter
Glossary
Sugerencias para el uso de la ayuda

https://docs.sw.siemens.com/documentation/external/PL20190708094239443/es-ES/tc/12.2/help_sc/es-ES/itk/id921903/xid629139/specdatatypes.html 1/1

You might also like