AIUIDREFSuite Struct Reference
[API Suite List]
This suite allows you to access and manage references to unique identifiers.
More...
#include <AIUID.h>
List of all members.
Detailed Description
This suite allows you to access and manage references to unique identifiers.
The AIEntrySuite
provides methods to convert between AIEntryRef
and AIUIDRef
.
Use a UID to tag an object with a unique identifier, then use a UID reference to make a reference to that object. For example, if your plug-in creates art objects and you want to attach a unique identifier to an object, first create a UID and put it in the art object�s dictionary. You can then store a reference to the object in the document dictionary using an AIUIDRef
.
- See also:
AIUIDPoolSuite
, AIUIDSuite
, AIUIDUtilsSuite
Member Data Documentation
Increments the reference count for a UID reference.
When you create an AIUIDRef
, the initial count is 1. Use Release()
to decrement the count. (Note that this function returns a numeric value, not an error code.)
- Parameters:
-
| uidref | The UID reference object. |
- Returns:
- The current reference count.
Retrieves the dictionary or array that contains a UID reference.
(Note that this function returns an object value, not an error code.)
- Parameters:
-
| uidref | The UID reference object. |
- Returns:
- The entry object, or a
NULL
reference if the UID reference is not stored in a container.
- See also:
AIEntrySuite
Retrieves the name of a UID reference as a Unicode string.
- Parameters:
-
| uidref | The UID reference object. |
| name | [out] A buffer in which to return the name. |
Retrieves the UID name pool to which a UID reference's name belongs.
(Note that this function does not return an error code.)
- Parameters:
-
| uidref | The UID reference object. |
| pool | [out] A buffer in which to return the UID name pool, or NULL if the UID reference is not valid. |
Retrieves the unique identifier referred to by a UID reference.
(Note that this function does not return an error code.)
- Parameters:
-
| uidref | The UID reference object. |
| uid | [out] A buffer in which to return the UID object, or NULL if there is none. |
Reports whether a UID reference is currently stored within some container.
A UID cannot occur in more than one container, or more than once in a container. (Note that this function returns a boolean value, not an error code.)
- Parameters:
-
| uidref | The UID reference object. |
- Returns:
- True if the UID reference is contained in a dictionary or array.
Decrements the reference count for a UID reference, and frees the memory when the reference count is 0.
When you create an AIUIDRef
, the initial count is 1. Use AddRef()
to increment the count. (Note that this function returns a numeric value, not an error code.)
- Parameters:
-
| uidref | The UID reference object. |
- Returns:
- The current reference count.
The documentation for this struct was generated from the following file: