Table 7.1 lists the topics in this clause.
This clause provides a detailed definition of the syntax and semantics of each API function. The SEDRIS API provides the means for creating, accessing, and modifying SEDRIS transmittals.
The following convention is used to present information about the SEDRIS API. Table 7.2 itemizes the different properties of the API funcitons. All functions use only the DRM classes defined in 6 DRM classes and data types defined in 5 Fundamental data types. Only the rows that apply to a particular function are provided.
Table 7.2 — SEDRIS API presentation format
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
|
||||
Failure status codes: |
|
The functions declared in this file are used to create, modify, and access SEDRIS transmittals.
Table 7.3 — AddAssociationRelationship
Property |
Description |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
Add an association relationship from from_object to to_object provided that the following criteria are met.
It should be noted that relationships between objects in different transmittals are not implicitly bi-directional, so the make_two_way parameter will have an effect in inter-transmittal referencing only if:
If only the from_object is resolved, the association can only be one way. If the SEDRIS DRM specifies that a link object is required for a relationship, the link_object parameter shall be used. If the SEDRIS DRM does not allow for the link object to exist in a relationship, the link_object parameter shall not be used. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||
Input parameters: |
| ||||||||||
Input/output parameters: |
|
||||||||||
Output parameters: |
|
||||||||||
Success status codes: |
SUCCESS |
||||||||||
Failure status codes: |
INVALID_ACCESS_MODE |
Table 7.4 — AddComponentRelationship
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
Adds a composition relationship from aggregate_object to component_object, provided that the following criteria are met.
If the SEDRIS DRM specifies that a link object is required for a relationship, the link_object parameter shall be used. If the SEDRIS DRM does not allow for the link object to exist in a relationship, the link_object parameter shall not be used. NOTE Relationships between objects in different transmittals are not implicitly bi-directional, so if the component_object is unresolved, the relationship will be uni-directional from the aggregate to the component. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_OBJECT |
Table 7.5 — CloneObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function creates a new handle to the same object referenced by object. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.6 — CloseTransmittal
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function closes the specified transmittal and frees any and all memory allocated to hold the representation of the transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_TRANSMITTAL |
Table 7.7 — CMYKToCMY
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function converts a CMYK colour value to a CMY colour value. Incoming data values are expected to be between 0.0 and 1.0, inclusive. Furthermore, after adding the incoming black value to the incoming cyan, magenta, and yellow values, all results are expected to be between 0.0 and 1.0, inclusive. No checking of parameters or results are made by this function. This function does not clamp a result even if the result is greater than 1.0. The algorithm that will be applied is: Cyan = incoming Cyan + incoming Black As this function completes successfully, the following action occurs:
As this function completes in error, the following action occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_PARAMETER |
Table 7.8 — CMYToCMYK
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function converts a CMY colour value to a CMYK colour value. Incoming data values are expected to be between 0.0 and 1.0, inclusive. The algorithm that will be applied is: Black
= Minimum of As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_PARAMETER |
Table 7.9 — ConvertColourToGivenModel
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
This function converts a colour data value in one colour model to the equivalent colour data value in another colour model.— The three colour models supported by this function are CMY (Cyan Magenta Yellow), HSV (Hue Saturation Value) and RGB (Red Green Blue). All incoming data values are expected to be between 0.0 and 1.0, inclusive; the only exception is the value for Hue in the HSV colour model, which is expected to be between 0.0 and 360.0 inclusive (360.0 will be automatically converted to 0.0). The value of POSITIVE_INFINITY will be returned for the Hue value of “undefined”. When converting from HSV to any other system, if the Saturation value is 0.0, the Hue value is ignored. The conversion algorithms are defined in 2.[I9592]. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.10 — CreateObject
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
This function creates a new object. The fields are initialized to the default values for the specified class. The object is not actually stored in the transmittal until the AddToTransmittal function is called. Until then, it remains in an unsaved state, and becomes resolved when added to the transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_PARAMETER |
Table 7.11 — CreateSearchFilter
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
Defines a set of rules that can be used to filter objects from a SEDRIS transmittal so that only the objects that pass the rules will be returned to the user. This function only defines a set of rules; to use a set of rules after they have been defined, pass the set of rules into an iterator when creating the iterator. By doing so, the iterator will be bound to use that set of rules (i.e., that search filter) to filter all objects that will be returned by that iterator. Search filters can be freed at any time; a search filter does not need to stay in existence until the iterator(s) that depend on that filter are freed. (An iterator are expected to retain a copy of any search filter used to initialize that iterator). See 5.3.3.241 Search_Rule for further details on how to construct a valid set of rules. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.12 — CreateSpatialSearchBoundary
Property |
Description |
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function creates a spatial search boundary to limit the scope of a component iterator’s search. The spatial search boundary can be used in a later call to 7.3.64 InitializeComponentIterator to limit the spatial area that the iterator will search. Spatial search boundaries can be freed at any time; a spatial search boundary does not need to stay in existence until the iterator(s) that depend on that boundary are freed. (An iterator is expected to retain a copy of any search boundary used to initialize that iterator). If no spatial search boundary is supplied, the set of objects an iterator will iterate over will be determined solely by the search rules and the starting object of the search. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||||
Input parameters: |
|
||||||||||||||
Input/output parameters: |
|
||||||||||||||
Output parameters: |
|
||||||||||||||
Success status codes: |
SUCCESS |
||||||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.13 — DetermineSpatialInclusion
Property |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function determines whether a SEDRIS object is contained within the user-specified spatial area. DetermineSpatialInclusion supplements the normal method of filtering objects by spatial location (i.e. the use of search boundaries with component iterators as described under 7.3.11 CreateSpatialSearchBoundary). While DetermineSpatialInclusion can be used with any SEDRIS object, its intended use is to find out more information about the relationship of an object returned by a component iterator to the search bounds used in that iterator. The canonical example is to have the component iterator created with a partial inclusion choice, then to check objects for full inclusion with DetermineSpatialInclusion. In addition to determining whether a SEDRIS object is partly or completely inside the user-defined search bounds, this function, unlike a search boundary, will also determine whether a two-dimensional or three-dimensional object completely includes the spatial search area. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||
Input parameters: |
|
||||||||||||
Input/output parameters: |
|
||||||||||||
Output parameters: |
|
||||||||||||
Success status codes: |
SUCCESS |
||||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.14 — FreeIterator
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the memory directly associated with the specified iterator. The handle to the iterator is invalid following a call to this function. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
FAILURE |
Table 7.15 — FreeObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the
memory directly associated with the specified object handle allocated by this
API during an earlier call to a function that retrieved an object handle
(e.g., GetNthComponentOfDRMClass, GetNextObject, or If multiple object handles corresponding to the same object have been retrieved through this API, FreeObject shall not release the memory for that object until the last object handle to the object is passed in to FreeObject. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_OBJECT |
Table 7.16 — FreePackedHierarchy
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the data associated with the fields of a Packed_Hierarchy instance returned by 7.3.42 GetPackedHierarchy, including decrementing the reference counts of all object handles in records of the object_list field. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.17 — FreeRemainingObjectsList
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the data associated with the fields of a Remaining_Objects_List value returned by 7.3.47 GetRemainingObjectsList, including decrementing the reference counts of all object handles in the remaining_objects_list and remaining_link_objects_list fields. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.18 — FreeRemainingPackedHierarchiesList
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the data associated with the fields of a Remaining_Packed_Hierarchies_List returned from 7.3.48 GetRemainingPackedHierarchies, including decrementing the reference counts of all object handles in the records of the object_list field contained within each Packed_Hierarchy record in the hierarchy_list field. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.19 — FreeSearchFilter
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the memory directly associated with the specified filter. The memory was allocated during an earlier call to 7.3.10 CreateSearchFilter. The handle to the search filter is invalid following a call to this function. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
FAILURE |
Table 7.20 — FreeSpatialSearchBoundary
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the memory directly associated with the specified spatial search boundary. The memory was allocated by this API during an earlier call to 7.3.11 CreateSpatialSearchBoundary. The handle to the spatial search boundary is invalid following a call to this function. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
FAILURE |
Table 7.21 — FreeTransmittal
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function frees the memory directly associated with the specified transmittal handle. The memory was allocated by an earlier call to 7.3.52 GetTransmittalFromObject. The handle to the transmittal is invalid following a call to this function. Transmittal handles returned from 7.3.69 OpenTransmittalByLocation or 7.3.70 OpenTransmitalByName shall not be provided to this function. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_TRANSMITTAL |
Table 7.22 — GetAggregate
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function retrieves the given kind of aggregate object (an aggregate object of the specified DRM class) that directly contains the given object (object) as a component.— For example, if 7.3.21 GetAggregate is called with a <DRM Model> as the object object, the <DRM Model Library> would be returned in object, since the <DRM Model Library> is the aggregate object that contains the <DRM Model> as a component. This is a short form, single instance version of an aggregate iterator. It combines the creation of an iterator, making a call to 7.3.35 GetNextObject, and freeing the iterator, in the case where one and only one aggregate should be retrieved. Given an object (object) and a type of aggregate to search for (drm_class), this function looks for an immediate aggregate object of the given type. Only aggregates that include the object via a two-way aggregation will be returned by this function. As this function completes successfully, one of the following actions occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.23 — GetAssociate
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function retrieves the given kind of associated object from the given object. This is a short form, single instance version of an associate iterator. It combines the creation of an iterator, making a call to 7.3.35 GetNextObject, and freeing the iterator, in the case when one and only one associate should be retrieved. Given an object (object) and a type of associate for which to search (drm_class), this function will look for an immediately associated object of the given drm_class. Only objects at the “to” end of a one-way association, or at either end of a two-way association, will be returned by this function. As this function completes successfully, one of the following actions occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.24 — GetColourModel
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function returns the colour model currently being used when returning— <DRM Colour Data> objects from the specified transmittal. The value returned depends on the last call made to 7.3.85 SetColourModel and/or 7.3.97 UseDefaultColourModel functions and the manner in which the transmittal was produced. Case 1: 7.3.85 SetColourModel was called more recently than 7.3.97 UseDefaultColourModel. The colour model selected by 7.3.85 SetColourModel is still the current colour model, and that colour model data will be returned. It does not matter what colour model— was originally used to produce the given transmittal, since the 7.3.85 SetColourModel function was used to override any default colour model choices and force all <DRM Colour Data> objects to be of the type specified by the current colour model. Case 2: 7.3.97
UseDefaultColourModel was called more recently than 7.3.85 SetColourModel or As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.25 — GetComponent
Property |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function retrieves a component object of the DRM class specified by drm_class (or, if drm_class specifies an abstract class, a subclass of the class specified by drm_class) from the specified object. If the value of process_inheritance is TRUE, “inherited” components will be considered as well as “immediate” components. If the value is FALSE, only “immediate” components will be considered. EXAMPLE setting the process_inheritance parameter to TRUE allows asking for the <DRM Inline Colour> component of a <DRM Polygon> without regard to whether the <DRM Inline Colour> component was an “mmediate” or “nherited” component of the <DRM Polygon>. An “immediate” component will always take precedence over an “inherited” component. The itr_traversal parameter specifies how the function will behave when it encounters an Inter-Transmittal Reference (ITR). The function could:
As this function completes successfully, one of the following actions occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||
Input parameters: |
|
||||||||||||
Input/output parameters: |
|
||||||||||||
Output parameters: |
|
||||||||||||
Success status codes: |
SUCCESS |
||||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.26 — GetContextTransformation
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function retrieves a copy of the current effective transformation of the given object. This is the accumulation of all transformations for one of two possible cases as described below. In the first case, the accumulated transformation is from the <DRM Transmittal Root> down to the object, including any transformation components directly aggregated by that object. If object, or any of the objects between it and its <DRM Transmittal Root>, are referenced as a component from another transmittal and that transmittal is open, the accumulation is from the other transmittal’s <DRM Transmittal Root>. Otherwise, the accumulation is from the <DRM Transmittal Root> within object’s own transmittal. In the second case, the accumulated transformation is from the <DRM Model> down to the object, including any transformation components directly aggregated by that object depending on whether the object was or was not part of a <DRM Model>. If no matrices were accumulated by the object, the identity matrix shall be returned. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.27 — GetDataTableData
Property |
Description |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
Given a <DRM_Data_Table> instance, this function copies the selected cell elements from the selected area of interest into a space in memory to which the user has direct access. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||
Input parameters: |
|
||||||||||
Input/output parameters: |
|
||||||||||
Output parameters: |
|
||||||||||
Success status codes: |
SUCCESS |
||||||||||
Failure status codes: |
UNRESOLVED_START_OBJECT |
Table 7.28 — GetDRMClass
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function identifies the DRM class of the object specified by the object parameter. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.29 — GetFields
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function retrieves a pointer to the field data of an object. The DRM_Class_Fields data type is a variant record type that can represent any of the different collections of field data types from all of the different concrete DRM classes. The field values returned by the fields parameter are only valid as long as the object is valid. When the object is freed (by a call to 7.3.14 FreeObject), the information returned by the fields parameter is no longer valid. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_OBJECT |
Table 7.30 — GetIDForObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function returns an ID text string for the specified object. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.31 — GetImageData
Property |
Description |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function copies the selected texels from the selected area of interest of the given <DRM Image> instance into a space in memory that the user has already allocated to hold this data. A <DRM Image> is a set of 2D or 3D collections of texel values. The number of MIP levels for the <DRM Image> defines the number of 2D or 3D collections in the <DRM Image>. The definition of the <DRM Image> will define the number of texels in each MIP level and the number of bits (not just bytes, but bits) for each texel. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||
Input parameters: |
|
||||||||||
Input/output parameters: |
|
||||||||||
Output parameters: |
|
||||||||||
Success status codes: |
SUCCESS |
||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.32 — GetImplementationIdentifier
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a handle to an object, this function returns the implementation identifier associated with the API implementation in which that object resides. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.33 — GetIterationLengthRemaining
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function returns the number of objects remaining for the given iterator. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.34 — GetLastFunctionStatus
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
This function returns the status and description of the result of the last function call. The last_function_status returns the status of the last function call. The error_description parameter will contain information about the status code returned in last_function_status. The value of error_description shall be NULL if the last function completed successfully. As this function completes successfully, the following action occurs:
As this function completes in error, the following action occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INACTIONABLE_FAILURE |
Table 7.35 — GetNextObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function retrieves the next_object, and optionally the related link_class_object, from an iterator. The link_class_object shall be the link class object on the relationship traversed by the iterator to arrive at next_object. If no link class object existed on the relationship, link_class_object shall be set to NULL. As this function completes successfully, one of the following actions occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.36 — GetNthAssociateOfDRMClass
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
Given an object that has multiple, ordered associates of a certain DRM class, this function returns an object for the nth associate of that class. ITR associates will be automatically resolved and if an ITR associate is encountered that cannot be resolved, the call will return UNRESOLVED_OBJECT for the n value passed in and any higher n values. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.37 — GetNthComponentOfDRMClass
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
Given an object that has multiple, ordered components of a certain DRM class, returns an object for the nth component of that class. ITR components will be automatically resolved and if an ITR component is encountered that cannot be resolved, the call will return UNRESOLVED_OBJECT for the n value passed in and any higher n values. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.38 — GetNumberOfPathsToTransmittalRoot
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function determines how many different paths can be traversed from the <DRM Transmittal Root> to the given object, where a path is defined as a bi-directional aggregate to component relationship. If object, or any of the objects between it and its <DRM Transmittal Root>, are referenced as a component from another transmittal and that transmittal is open, the paths counted are those to the other transmittal’s <DRM Transmittal Root>. Otherwise, the paths are to the <DRM Transmittal Root> within the transmittal containing object. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_OBJECT |
Table 7.39 — GetObjectForID
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function returns the SEDRIS object corresponding to the specified ID. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.4. Table 7.40 — GetObjectReferenceCount
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function returns the number of currently outstanding handles for the given object. Multiple handles (multiple variables of type Object) to the same object may exist by having the same object returned from multiple iterators or from multiple calls to other functions that return the type Object. An object is “active” as long as at least one handle to the object exists. That is, an object is active until 7.3.14 FreeObject is called for as many handles as were returned for that object from other API functions. This function can be used to determine if a handle to an object has already been returned from any of the API calls that return object handles (e.g., 7.3.35 GetNextObject and 7.3.37 GetNthComponentOfDRMClass). This function can also assist with the 7.3.94 SetUserData and 7.3.58 GetUserData functions. See those function descriptions for details. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.41 — GetPackedHierarchy
Property |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function retrieves a subhierarchy rooted at a given object into a set of data structures that can be directly traversed by the calling application. As this function completes successfully, one of the following actions occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||
Input parameters: |
|
||||||||||||
Input/output parameters: |
|
||||||||||||
Output parameters: |
|
||||||||||||
Success status codes: |
SUCCESS |
||||||||||||
Failure status codes: |
UNRESOLVED_OBJECT |
Table 7.42 — GetPublishedLabels
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
Given a SEDRIS object, this function returns the labels under which the object was published. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.43 — GetPublishedObjectList
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
Given a transmittal, this function returns a list of objects published by that transmittal for possible reference using ITR. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.44 — GetReferencedTransmittalList
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
Given a transmittal, this function returns the list of other transmittals that are referenced by this transmittal using Inter-Transmittal Referencing (ITR). The names returned are formal SEDRIS transmittal names used to create the ITR references. If this transmittal contains no ITR references, an empty list is returned. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.45 — GetRelationCounts
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
Given an object, this function returns the counts of
that the specified object has. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
UNRESOLVED_START_OBJECT |
Table 7.46 — GetRemainingObjectsList
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function iterates over the remaining objects available through an iterator, and returns all of them at one time. Following this call, the iterator is left such that no more objects will be returned by the iterator. The number_of_objects field of the output parameter is set to the number of objects remaining on the iterator prior to the call, and is the number of items in each of the other array fields in the output record. The nth entry in the remaining_objects_list and remaining_link_objects_list arrays correspond to the nth object returned by the iterator and its related link class object, if one exists. The nth entry in object_status_list and link_object_status_list arrays correspond to the status codes indicating the results of the object retrieval for the nth object. As this function completes successfully, one of the following actions occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.47 — GetRemainingPackedHierarchies
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
This function iterates over the remaining objects available through an iterator and returns packed hierarchies for all of them at one time. The hierarchy_depth parameter specifies the depth to which the sub-hierarchy of each remaining object is extracted below that object. A value of one indicates that only the components of each remaining object are to be returned. A value of zero indicates that the entire sub-hierarchy of each remaining object is to be returned. As this function completes successfully, one of the following actions occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.48 — GetRootObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a transmittal, this function returns the SEDRIS object that has been stored as root of the transmittal object hierarchy. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.49 — GetSortKey
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function returns a value that can be used as a sort key for the object. The value of sort_key is valid only as long as the object is referenced by at least one object handle. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.50 — GetSRFParameters
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function gives the user the spatial reference frame (SRF) parameters currently being used when returning <DRM Location> objects in the same SRF scope as the specified object. More details are available under 7.3.92 SetSRFParameters. The answer depends on the last call made to 7.3.92 SetSRFParameters and/or 7.3.98 UseDefaultSRFParameters and the manner in which the transmittal was produced. Case 1: 7.3.92 SetSRFParameters was called more recently than 7.3.98 UseDefaultSRFParameters. The SRF defined by SetSRFParameters is still the current retrieval SRF, and that SRF’s parameters will be returned by this function. It does not matter what SRF was used to originally produce the given transmittal, since the 7.3.92 SetSRFParameters function was used to override any default SRF choices and force all <DRM Location> objects to be of the type specified by the current retrieval SRF. Case 2: 7.3.98 UseDefaultSRFParameters was called more recently than 7.3.92 SetSRFParameters, or 7.3.92 SetSRFParameters was never called. In this case, the retrieval SRF that will be used to define <DRM Location> objects from the given transmittal depends entirely on the transmittal. The retrieval SRF used to return data will be the retrieval SRF that was used when producing the transmittal. This is the default case. If the supplied object does not fall within the scope of any SRF, the SRF parameters are undefined and 7.3.51 GetSRFParameters will return FAILURE. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.51 — GetTransmittalFromObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a SEDRIS object, this function retrieves the transmittal in which the object is contained. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.52 — GetTransmittalLocation
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a handle to a transmittal, this function retrieves the location associated with the transmittal and transmittal referenced a valid, open transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.53 — GetTransmittalName
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a handle to a transmittal, this function returns the formal transmittal name associated with the transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.54 — GetTransmittalVersionInformation
Property |
Description |
||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function returns the version of the SEDRIS Data Representation Model, Environmental Data Coding Specification, and Spatial Reference Model used to define the given transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||||||||||
Input parameters: |
|
||||||||||||||||||||
Input/output parameters: |
|
||||||||||||||||||||
Output parameters: |
|
||||||||||||||||||||
Success status codes: |
SUCCESS |
||||||||||||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.55 — GetUniqueTransmittalID
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a transmittal, this function retrieves a string identifier for the associated transmittal that can then be compared with identifiers from other transmittals. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.56 — GetUnresolvedObjectFromPublishedLabel
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function creates an unresolved reference to an object based on the combination of transmittal name and object label. This function does not validate the reference to ensure that it can be resolved. This behaviour is intentional in order to allow referencing well-known published objects, without requiring the transmittal containing the object to be accessible. The 7.3.83 ResolveObject function is available to do this, but requires that the referenced transmittal be accessible. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.57 — GetUserData
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function returns the current value of the user data for the given object. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.58 — InitializeAggregateIterator
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function creates an iterator that traverses over the list of aggregate objects returning handles to those that meet the following conditions:
The 7.3.35 GetNextObject function is provided to get the next object from an iterator. The 7.3.34 GetIterationLengthRemaining may be invoked to find out the remaining length of an iterator (i.e., the number of objects remaining inside the iterator). The 7.3.13 FreeIterator function should be invoked when finished with an iterator to free it. Iterators can be freed at any time (e.g., iterators can be freed before all of their objects have been returned). As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.59 — InitializeAssociateIterator
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function creates an iterator that traverses over the list of associate objects returning handles to those that meet the following conditions:
If start_object is associated solely by one-way incoming associations, or if start_object does not participate in any associations, an associate iterator for that start_object shall not return any objects. An associate iterator is created, but it has a length of zero and does not return any objects. The 7.3.35 GetNextObject function is used to get the next object from an iterator. The 7.3.34 GetIterationLengthRemaining function is used to determine the remaining length of an iterator (i.e., the number of objects remaining inside the iterator). The 7.3.13 FreeIterator function should be invoked when interaction with an iterator has been completed to free it. Iterators can be freed at any time (e.g., before all of their objects have been returned). As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.60 — InitializeComponentIterator
Property |
Description |
||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function creates an iterator that traverses over the list of component objects returning handles to those that meet the user-specified conditions. This iterator starts at the top of an aggregation tree. The start_object is considered the root of the tree. All of the components below the start_object will be searched, and the components of those components will be searched, and their components will be searched as many levels down as the search filter specifies. If the search filter does not limit the depth of the search with a maximum search depth rule, the iterator shall search until it has tested every object in the aggregation tree rooted by the start_object. Objects returned by a component iterator shall meet the following conditions:
If start_object does not contain any component objects (or it contains component objects, but none of the components within the specified search depth meet the search filter and/or spatial search boundary conditions), a component iterator for that start_object, search filter, and spatial search boundary will not return any objects. A component iterator is created, but it has a length of zero and does not return any objects. The 7.3.35 GetNextObject function is used to get the next object from an iterator. The 7.3.34 GetIterationLengthRemaining function can be used to determine the remaining length of an iterator (i.e., the number of objects remaining inside the iterator). The 7.3.13 FreeIterator function shall be used when interaction with an iterator has been completed to free it. Iterators can be freed at any time (e.g., before all of their objects have been returned). If the directly_attach_table_components parameter has the value FALSE, the actual SEDRIS objects can be examined by the consumer through the component iterators. However, if the value is TRUE, the component iterators shall automatically make the following adjustments to the object types returned through the API in the following special cases:
If the process_inheritence parameter has value TRUE, “inherited components” shall be inherited, and they shall appear as components of the appropriate objects. These “inherited” components are as “valid” as “direct” components, and they shall satisfy all matching criteria. If the transform_locations parameter has value TRUE, all <DRM Location> objects shall be transformed according to the transformations (<DRM LSR Transformation>s and/or <DRM World Transformation>) encountered by the iterator. If the follow_model_instances parameter has value TRUE, the iterator shall search through the <DRM Geometry Model Instance> to <DRM Geometry Model> association as if it were an aggregation (it will “instance” the model). The same logic applies to the <DRM Feature Model Instance> to <DRM Feature Model> association. If the evaluate_static_control_links parameter has value TRUE, all expressions composed entirely of literals and functions that use only literals shall be evaluated, and their results shall replace the appropriate field values of their targeted “controlled” objects. The select_parameters parameter is optional. If provided, it specifies the parameters that will be used to determine components to traverse when encountering a <DRM Aggregate Feature> or <DRM Aggregate Geometry> object. The traversal_order_parameters parameter is optional. If provided, it specifies the parameters that will be used to determine what order to traverse the components when encountering an <DRM Aggregate Feature> or <DRM Aggregate Geometry> object. The general_traversal_pattern parameter indicates whether the iterator should traverse the search space in a depth-first, breadth-first, or optimized order. The depth-first and breadth-first approaches allow for full transformation and inherited component information to be maintained at all times. The optimized approach can be faster, but there is no guarantee that any particular path was taken from the start_object to the returned objects, so it is possible for no context (an empty context) to be returned with the returned objects. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||||||||||||||||
Input parameters: |
|
||||||||||||||||||||||||||
Input/output parameters: |
|
||||||||||||||||||||||||||
Output parameters: |
|
||||||||||||||||||||||||||
Success status codes: |
SUCCESS |
||||||||||||||||||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.61 — InitializeInheritedComponentIterator
Property |
Description |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function creates an iterator that traverses over the list of component objects returning handles to those that are inherited. This function should be used if only inherited components are to be identified. If only directly aggregated components of an object are to be identified, the 7.3.64 InitializeComponentIterator function with the process_inheritance parameter set to FALSE should be used. If both the inherited components and the directly aggregated components of an object are to be identified and it is not necessary to distinguish between the two sets), the 7.3.64 InitializeComponentIterator function with the process_inheritance parameter set to TRUE should be used. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||
Input parameters: |
|
||||||||||
Input/output parameters: |
|
||||||||||
Output parameters: |
|
||||||||||
Success status codes: |
SUCCESS |
||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.62 — IsIteratorComplete
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function is used to determine whether an iterator has any more objects to return. If the iterator has no objects to return, it returns the value TRUE; otherwise, it returns the value FALSE. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INACTIONABLE_FAILURE |
Table 7.63 — ObjectIsPublished
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a SEDRIS object, this function determines whether the specified object has been published or not. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.64 — ObjectIsResolved
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a SEDRIS object, this function determines if the specified object is resolved. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.65 — ObjectsAreSame
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
This function determines if two object handles both refer to the same object. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.66 — OpenTransmittalByLocation
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function opens a SEDRIS transmittal for access, based on the mode specified. This function specifies the SEDRIS transmittal to be opened using the location of the file containing the SEDRIS transmittal and its objects. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.67 — OpenTransmittalByName
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function opens a SEDRIS transmittal for access, based on the mode specified. This function specifies the SEDRIS transmittal to be opened using the formal transmittal name of the SEDRIS transmittal. The formal name of the SEDRIS transmittal is resolved automatically based on the process described for the function 7.3.84 ResolveTransmittalName. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.68 — PublishObject
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
Given a resolved SEDRIS object, this function makes the object available for ITR referencing by listing it as “published” within the transmittal. If the object has already been published, the new label is added to the list of labels for the object. The transmittal whose object is to be edited shall be explicitly opened in UPDATE mode for this operation to succeed. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.69 — PutDataTableData
Property |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
Given a <DRM_Data_Table> instance, this function inserts the selected cell elements from the selected area of interest into the transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||
Input parameters: |
|
||||||||||||
Input/output parameters: |
|
||||||||||||
Output parameters: |
|
||||||||||||
Success status codes: |
SUCCESS |
||||||||||||
Failure status codes: |
UNRESOLVED_START_OBJECT |
Table 7.70 — PutFields
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function modifies the fields of existing_object which is an object returned from the API. The transmittal whose object is to be edited shall be explicitly opened in UPDATE mode for this operation to succeed. The function shall verify that new_fields contain valid data values compatible with the DRM class of existing_object. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_OBJECT |
Table 7.71 — PutImageData
Property |
Description |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function copies the selected texels from a buffer into the selected area of interest of the given <DRM Image> instance. A <DRM Image> instance is a set of two-dimensional or three-dimensional collections of texel values. The number of MIP levels for the <DRM Image> instance defines the number of two-dimensional or three-dimensional collections in the <DRM Image> instance. The definition of the <DRM Image> instance will define the number of texels in each MIP level and the number of bits for each texel. The transmittal whose object is to be edited shall be explicitly opened in UPDATE mode for this operation to succeed. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||||||||||||
Input parameters: |
|
||||||||||||||||||
Input/output parameters: |
|
||||||||||||||||||
Output parameters: |
|
||||||||||||||||||
Success status codes: |
SUCCESS |
||||||||||||||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.72 — RemoveAssociationRelationship
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function breaks the relationship between from_object and to_object (and link_object, if given), but does not remove any of the objects involved from the transmittal (for removal, see 7.3.82 RemoveFromTransmittal). The relationship being removed may be one-way or two-way. If it is two-way, and remove_two_way is true, both connections are broken, unless the to_object is unresolved. If the SEDRIS DRM specifies that a link object is required for a relationship, link_object shall be used. If the SEDRIS DRM does not allow for the link object to exist in a relationship, link_object shall not be used. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_OBJECT |
Table 7.73 — RemoveComponentRelationship
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function breaks the relationship between aggregate_object and component_object (and link_object, if given). It does not remove any of the objects involved from the transmittal (for this, see 7.3.82 RemoveFromTransmittal). The relationship being removed may be one-way or two-way. If it is two-way, both connections are removed, unless the component is unresolved. The transmittal whose object is to be edited shall be explicitly opened in UPDATE mode for this operation to succeed. If the SEDRIS DRM specifies that a link object is required for a relationship, link_object shall be used. If the SEDRIS DRM does not allow for the link object to exist in a relationship, link_object shall not be used. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
INVALID_OBJECT |
Table 7.74 — RemoveFromTransmittal
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
This function removes the specified object from the specified SEDRIS transmittal. Prior to calling this function, any relationships that old_object has with other objects shall have been removed. Otherwise, this function will fail. In addition, removing old_object does not automatically remove its component subtree. This would not be valid for the general case, since part of old_object’s component subtree might be shared with other objects. Similarly, none of old_object’s associates will be removed when old_object is removed. The transmittal whose object is to be edited shall be explicitly opened in UPDATE mode for this operation to succeed. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_OBJECT |
Table 7.75 — ResolveObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given an unresolved SEDRIS object, this function attempts to resolve the reference. The name of the transmittal containing the object shall first be resolved to a specific transmittal that can be accessed by the API. The object shall be resolved within the transmittal using the object’s published label. NOTE A SEDRIS transmittal that has been opened in this way cannot be modified. The transmittal shall be explicitly opened for writing or modification to do this. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_OBJECT |
Table 7.76 — ResolveTransmittalName
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a character string representing a formal SEDRIS transmittal name, this function returns the file location associated with this name. The format of a valid SEDRIS name is as described for the URN data type. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.77 — SetColourModel
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function sets the colour model that will be used to represent all <DRM Colour Data> objects retrieved after this function is called. This function has no effect on <DRM Colour Data> objects that were returned to the user before this function was called. By default, if this function is not called, colours are returned to the user in the format in which the colours were defined in the transmittal from which the colours were extracted. So, if a SEDRIS transmittal contains HSV colours, by default these colours will be returned to the user as <DRM HSV_Colour> objects. If the user calls the 7.3.85 SetColourModel function and sets the colour model to RGB_MODEL, all colours returned after this call are returned as <DRM RGB_Colour> objects. The colour model used for returning <DRM Colour Data> objects can be changed as often as desired. After changing colour models, the 7.3.97 UseDefaultColourModel function may be invoked to return to using the colour model that was used by the producer of each transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
FAILURE |
Table 7.78 — SetFirstErrorMessage
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
If an error occurs for a situation where the user has registered an error-handling callback function, that user-defined function is called, and is passed, among other items, two user-defined messages. The first of those messages is set by this function. The second message is set by the 7.3.90 SetSecondErrorMessage function. The intent of these messages is to give the user the ability to construct an intelligent error message that can give an indication as to what was occurring when the error occurred. As this function completes successfully, the following action occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
None |
Table 7.79 — SetGeneralCallback
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function registers a user-defined function as the general callback, to be called when any transmittal function is about to return any status code, unless that function has either a general function callback or a specific callback for that status code currently registered. This user-defined function shall be defined to be of type Status_Logger. A general function single function callback has priority over this general for all functions callback. See the 7.3.88 SetGeneralCallbackForOneFunction function comments for more details about general function callbacks. A specific function/specific status code callback has priority over both general function callbacks and general callbacks. More details may be found under the 7.3.91 SetSpecificCallback function. As this function completes successfully, the following action occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
None |
Table 7.80 — SetGeneralCallbackForOneFunction
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
This function registers a user-defined function as the callback function to be called when any status code is about to be returned by the given transmittal API function. This user-defined function shall be defined to match the signature required of a Status_Logger function. This callback will not be called if a specific status code is about to be returned from the selected transmittal function and that particular function and status code currently has a specific function/specific status code callback set by the 7.3.91 SetSpecificCallback function. A specific function/specific status code callback set by that call takes priority over a general function callback set by this function. More details may be found under 7.3.91 SetSpecificCallback. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
FAILURE |
Table 7.81 — SetRootObject
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
Given a handle to a transmittal that has explicitly been opened in CREATE or UPDATE mode, this function sets the passed DRM object as the root of the transmittal’s object hierarchy. The previous root object is returned in the old_root_object parameter. If no root object has been set for the given transmittal, NULL is returned in old_root_object. CAUTION Calling this function will permanently change the root object of the transmittal. In order to avoid orphaning objects within the transmittal, the old_root_object parameter is required in order to return the root object that was previously set. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.82 — SetSecondErrorMessage
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
If an error occurs for a situation where the user has registered an error-handling callback function, that user-defined function is called, and is passed, among other items, two user-defined messages. The second of those messages is set by this function. The first message is set by 7.3.86 SetFirstErrorMessage. These messages allow construction of an intelligent error message that more accurately reflects the status when the error occurred. As this function completes successfully, the following action occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
None |
Table 7.83 — SetSpecificCallback
Property |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Semantics: |
This function registers a user-defined function as the callback function to be called when the given status code is about to be returned by the specified API function. This user-defined function shall be of type Status_Logger. This is the most specific type of callback, a specific status code for a specific function. This callback has priority over a general function callback for the same function (if one is currently defined), and it also has priority over the general callback function (if one is currently defined). Has priority over means that if a specific status code/specific function callback is defined, it is the only callback that will be called when that particular status code is about to be returned from that particular function. When a transmittal API function returns, it will return the appropriate status code. If the user has defined a callback to be called when that particular status code is about to be returned by that particular function, that user-defined callback function will be called immediately before the function returns the status code. After the user-defined callback has been called, the transmittal API function will still return the status code it was about to return. The user-defined callback has no effect on the status code returned. Instead, the user-defined callback simply provides the user a method for tracking the return values of the transmittal API functions without explicitly checking each return value. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||||
Input parameters: |
|
||||||||
Input/output parameters: |
|
||||||||
Output parameters: |
|
||||||||
Success status codes: |
SUCCESS |
||||||||
Failure status codes: |
FAILURE |
Table 7.84 — SetSRFParameters
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function sets the spatial reference frame (SRF) that will be used to represent all <DRM Location> objects returned after this function is called. This function has no effect on <DRM Location> objects that have already been returned to the user before this function was called. Details on the various SRFs supported by SEDRIS may be found in ISO/IEC 18026--Spatial Reference Model (SRM) (see 2.[I18026]). The SRF used for returning <DRM Location> objects can be changed as often as desired. After changing to any particular SRF, it is possible to return to the default state where coordinates are returned in the SRF in which they were originally stored in the SEDRIS transmittal by using the 7.3.98 UseDefaultSRFParameters function. SPECIAL EXCEPTION: Local Space Rectangular (LSR) or Local Space Rectangular 2D (LSR2) coordinates will always be returned as LSR/LSR2 coordinates, regardless of the values passed to 7.3.92 SetSRFParameters. LSR/LSR2 coordinates are only converted into another spatial reference frame if they are instanced into the scope of another SRF via a model instance with a <DRM World Transformation>. If a <DRM Model> has been so instanced, and if that instance was traversed to reach the current <DRM Location> object, and if this API was instructed to transform coordinates when going through transformations, then and only then will LSR/LSR2 coordinates be transformed into the current scoping SRF. The various initialize iterator functions specify details on how to instruct this API to transform coordinates when going through transformations. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
OUT_OF_MEMORY |
Table 7.85 — SetTransmittalName
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a transmittal, this function sets (or modifies) the formal transmittal name associated with the transmittal. This function can be used to supply the first name for a transmittal opened using 7.3.69 OpenTransmittalByLocation or to modify the name of a transmittal that was previously named or opened using 7.3.70 OpenTransmittalByName. Details on the format of the transmittal name may be found under 7.3.84 ResolveTransmittalName. CAUTION: While setting the transmittal name is desirable in many cases, care should be taken when invoking this function. The API is not responsible for managing configuration and changing control for the transmittal being modified. Calling this function will permanently change the transmittal name associated with the file containing the SEDRIS transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.86 — SetUserData
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Each SEDRIS Object returned from this API has a field reserved for user data. This field is for the convenience of the user of this API. When an object is first returned, its user_data is empty. A call to SetUserData updates the user_data of an object as many times as desired while the user still has a valid accessor for that object. Once the user has returned an object to the API (by calling 7.3.14 FreeObject), the user_data for that object is no longer valid and is set to the NULL object. When the object is no longer active from the user’s point-of-view (when the user has called 7.3.14 FreeObject for that object once for every time the user was returned a reference for that object), the user_data for that object is reset to NULL by the API. NOTE Memory management of memory associated with user_data is the sole responsibility of the calling program. If the user_data contains memory that should be freed, the user should free that memory before returning the object to the API. The API will never access, free, or interfere with, in any way, the memory that exists as part of user_data. To assist in determining whether a call to the 7.3.14 FreeObject function will return the object to the API, the 7.3.40 GetObjectReferenceCount function is available. If an invocation of 7.3.40 GetObjectReferenceCount indicates that there is only one reference to the object, the next invocation of 7.3.14 FreeObject will return the object to the API. Any necessary memory management of the memory controlled by the user_data for the object should be released before the object is returned to the API since, once the object is returned to the API by the 7.3.14 FreeObject call, the API will simply replace the user_data with a NULL object, and any memory that the user_data was controlling is in danger of being “orphaned” unless the calling program has also controlled the memory otherwise. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_OBJECT |
Table 7.87 — TransmittalsAreSame
Property |
Description |
||||||
---|---|---|---|---|---|---|---|
Semantics: |
Given two transmittal handles, this function determines if they reference the same SEDRIS transmittal. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||||
Input parameters: |
|
||||||
Input/output parameters: |
|
||||||
Output parameters: |
|
||||||
Success status codes: |
SUCCESS |
||||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.88 — UnpublishObject
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
Given a resolved SEDRIS object, this function removes the object from being published under the given label. The object shall have already been published under the label for this function to work. Unpublishing objects may result in a need to change the transmittal name portion of the URN assigned to a transmittal. Using the same transmittal name guarantees that all labels ever published will remain available in future “versions” of the transmittal. Removing a label using this function will require a transmittal name change if another object is not published under the same label before the transmittal is made publicly available or “released”. The transmittal whose object is to be edited shall be explicitly opened in UPDATE mode for this operation to succeed. As this function completes successfully, the following action occurs:
As this function completes in error, one of the following actions occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
INVALID_REQUIRED_PARAMETER |
Table 7.89 — UseDefaultColourModel
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function places the API into the default colour model state, in which <DRM Colour Data> objects are returned based entirely on the colour model used to produce the transmittal from which the <DRM Colour Data> objects are extracted. The API will remain in this state until the 7.3.85 SetColourModel function is invoked that takes the API out of the current colour model state and places it into whatever colour model was specified in the 7.3.85 SetColourModel call. For example, if the transmittal was defined with RGB colours, <DRM RGB_Colour> objects will be returned as <DRM Colour Data> objects once 7.3.97 UseDefaultColourModel is called. The GetColourModel function may be invoked to find out what the default colour model is, either immediately after an invocation of 7.3.97 UseDefaultColourModel, or at any time before an invocation of 7.3.85 SetColourModel. Instead of returning a value, this function changes the internal state of the API, determining the colour model used to define <DRM Colour Data> objects returned by this API. As this function completes successfully, the following action occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
None |
Table 7.90 — UseDefaultSRFParameters
Property |
Description |
||||
---|---|---|---|---|---|
Semantics: |
This function places the API into the default SRF state, in which <DRM Location> objects are returned based entirely on the SRF in which they were originally encoded in the transmittal. The API will remain in this state until the user calls 7.3.92 SetSRFParameters that takes the API out of the current SRF state and forces the use of whatever SRF was specified by 7.3.92 SetSRFParameters. For example, if a transmittal was defined with AUTM SRF locations, <DRM AUTM Location 3D> objects will be returned as the type of <DRM Location 3D> objects from that transmittal once 7.3.97 UseDefaultSRFParameters is called. The 7.3.51 GetSRFParameters can be used to find out what the current world coordinate system parameters are, either immediately after a call to 7.3.97 UseDefaultSRFParameters, or at any time before a call to 7.3.92 SetSRFParameters is made. Instead of returning a value, this function changes the internal state of the API, determining the coordinate system used to define <DRM Location> objects returned by this API. As this function completes successfully, the following action occurs:
|
||||
Input parameters: |
|
||||
Input/output parameters: |
|
||||
Output parameters: |
|
||||
Success status codes: |
SUCCESS |
||||
Failure status codes: |
None |