ISO/IEC CD2 18023-1 — SEDRIS functional specification

7 Application program interface (API)

7.1 Introduction

7.1.1 Table of contents

Table 7.1 lists the topics in this clause.

Table 7.1 — Table of contents

7 Application program interface (API)

7.1 Introduction

7.1.1 Table of contents

7.1.2 Description

7.2 Document conventions and notations

7.3 API functions

7.3.1 Overview

7.3.2 AddAssociationRelationship

7.3.3 AddComponentRelationship

7.3.4 CloneObject

7.3.5 CloseTransmittal

7.3.6 CMYKToCMY

7.3.7 CMYToCMYK

7.3.8 ConvertColourToGivenModel

7.3.9 CreateObject

7.3.10 CreateSearchFilter

7.3.11 CreateSpatialSearchBoundary

7.3.12 DetermineSpatialInclusion

7.3.13 FreeIterator

7.3.14 FreeObject

7.3.15 FreePackedHierarchy

7.3.16 FreeRemainingObjectsList

7.3.17 FreeRemainingPackedHierarchiesList

7.3.18 FreeSearchFilter

7.3.19 FreeSpatialSearchBoundary

7.3.20 FreeTransmittal

7.3.21 GetAggregate

7.3.22 GetAssociate

7.3.23 GetColourModel

7.3.24 GetComponent

7.3.25 GetContextTransformation

7.3.26 GetDataTableData

7.3.27 GetDRMClass

7.3.28 GetFields

7.3.29 GetIDForObject

7.3.30 GetImageData

7.3.31 GetImplementationIdentifier

7.3.32 GetIterationLengthRemaining

7.3.33 GetLastFunctionStatus

7.3.34 GetNextObject

7.3.35 GetNthAssociateOfDRMClass

7.3.36 GetNthComponentOfDRMClass

7.3.37 GetNumberOfPathsToTransmittalRoot

7.3.38 GetObjectForID

7.3.39 GetObjectReferenceCount

7.3.40 GetPackedHierarchy

7.3.41 GetPublishedLabels

7.3.42 GetPublishedObjectList

7.3.43 GetReferencedTransmittalList

7.3.44 GetRelationCounts

7.3.45 GetRemainingObjectsList

7.3.46 GetRemainingPackedHierarchies

7.3.47 GetRootObject

7.3.48 GetSortKey

7.3.49 GetSRFParameters

7.3.50 GetTransmittalFromObject

7.3.51 GetTransmittalLocation

7.3.52 GetTransmittalName

7.3.53 GetTransmittalVersionInformation

7.3.54 GetUniqueTransmittalID

7.3.55 GetUnresolvedObjectFromPublishedLabel

7.3.56 GetUserData

7.3.57 InitializeAggregateIterator

7.3.58 InitializeAssociateIterator

7.3.59 InitializeComponentIterator

7.3.60 InitializeInheritedComponentIterator

7.3.61 IsIteratorComplete

7.3.62 ObjectIsPublished

7.3.63 ObjectIsResolved

7.3.64 ObjectsAreSame

7.3.65 OpenTransmittalByLocation

7.3.66 OpenTransmittalByName

7.3.67 PublishObject

7.3.68 PutDataTableData

7.3.69 PutFields

7.3.70 PutImageData

7.3.71 RemoveAssociationRelationship

7.3.72 RemoveComponentRelationship

7.3.73 RemoveFromTransmittal

7.3.74 ResolveObject

7.3.75 ResolveTransmittalName

7.3.76 SetColourModel

7.3.77 SetFirstErrorMessage

7.3.78 SetGeneralCallback

7.3.79 SetGeneralCallbackForOneFunction

7.3.80 SetRootObject

7.3.81 SetSecondErrorMessage

7.3.82 SetSpecificCallback

7.3.83 SetSRFParameters

7.3.84 SetTransmittalName

7.3.85 SetUserData

7.3.86 TransmittalsAreSame

7.3.87 UnpublishObject

7.3.88 UseDefaultColourModel

7.3.89 UseDefaultSRFParameters

7.1.2 Description

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.

7.2 Document conventions and notations

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:

Parameter name

Parameter data type

parameter_i

Data_Type_For_Parameter_i

Input/output parameters:

Parameter name

Parameter data type

parameter_io

Data_Type_For_Parameter_io

Output parameters:

Parameter name

Parameter data type

parameter_o

Data_Type_For_Parameter_o

Success status codes:

 

Failure status codes:

 

7.3 API functions

7.3.1 Overview

The functions declared in this file are used to create, modify, and access SEDRIS transmittals.

7.3.2 AddAssociationRelationship

Table 7.3 — AddAssociationRelationship

Property

Description

Semantics:

Add an association relationship from from_object to to_object provided that the following criteria are met.

  1. Either from_object or to_object shall be a resolved object, or both shall be resolved objects. If both from_object and to_object are resolved, link_object (if provided) shall be a resolved object; otherwise, link_object may be unresolved.

  2. from_object shall reside in a transmittal that has been explicitly opened with either access mode CREATE or access mode UPDATE.

  3. to_object if not in the same transmittal as from_object, shall be a published object.

  4. link_object, if not in the same transmittal as from_object, shall be a published object.

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:

  1. both the from_object and to_object are published,

  2. both the from_object and to_object are resolved and,

  3. both transmittals have been opened for writing or modification

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:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_ACCESS_MODE and no changes are made, if:
    1. from_object (and link_object if specified) is in a transmittal that is open in READ_ONLY mode;
    2. to_object is in a transmittal that has not been opened for writing or modification, so no association could be created from to_object.
  • Current status code is set to INVALID_OBJECT and no changes are made if:
    1. from_object is NULL, has not yet been added to the transmittal, or does not belong to a valid SEDRIS class;
    2. to_object is NULL, has not yet been added to the transmittal, or does not belong to a valid SEDRIS class;
    3. link_object is non-NULL and either has not yet been added to the transmittal, or does not belong to a valid SEDRIS class; or
    4. if a link object is required for the association relationship from to_object to from_object, but link_object is NULL, has not been added to a transmittal, or does not belong to a valid DRM class.
  • Current status code is set to UNPUBLISHED_OBJECT and no changes are made if:
    1. to_object is in another transmittal than from_object, but is not published by that transmittal; or
    2. link_object is in another transmittal than from_object, but is not published by that transmittal; or
    3. to_object is in another transmittal than from_object, and make_two_way is TRUE, but from_object is not published by its transmittal.
  • Current status code is set to UNRESOLVED_START_OBJECT and no changes are made if:
    1. from_object is an unresolved object, or
    2. link_object is an unresolved object, or
    3. to_object is an unresolved object and make_two_way is TRUE.

Input parameters:

Parameter name

Parameter data type

from_object

Object

to_object Object
link_object Object
make_two_way Boolean

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_ACCESS_MODE
INVALID_OBJECT
UNPUBLISHED_OBJECT
UNRESOLVED_START_OBJECT
FAILURE

 

7.3.3 AddComponentRelationship

Table 7.4 — AddComponentRelationship

Property

Description

Semantics:

Adds a composition relationship from aggregate_object to component_object, provided that the following criteria are met.

  1. Either aggregate_object or component_object shall be a resolved object, or both shall be resolved objects. If both aggregate_object and component_object are resolved, link_object (if provided) shall be a resolved object; otherwise, link_object may be unresolved.
  2. aggregate_object shall reside in a transmittal that has been explicitly opened with either access mode CREATE or access mode UPDATE.
  3. component_object, if component_object is resolved and not in the same transmittal as aggregate_object, shall be a published object.
  4. link_object, if not in the same transmittal as aggregate_object, shall be a published object.

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:

  • Current status code is set to SUCCESS the requested composition relationship is added if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT if:
    1. aggregate_object is NULL, has not yet been added to the transmittal, or does not belong to a valid SEDRIS class;
    2. component_object is NULL, has not yet been added to the transmittal, or does not belong to a valid SEDRIS class;
    3. link_object is non-NULL and either has not yet been added to the transmittal, or does not belong to a valid SEDRIS class; or
    4. the DRM requires a link object for the association relationship from to_object to from_object, but link_object was NULL, has not been added to a transmittal, or does not belong to a valid SEDRIS class.
  • Current status code is set to UNPUBLISHED_OBJECT and no changes are made if both component_object and aggregate_object are resolved, in different transmittals, and either is not published.
  • UNRESOLVED_START_OBJECT and no changes are made if:
    1. aggregate_object and component_object are both unresolved, or
    2. both aggregate_object and component_object are resolved and link_object is not unresolved.
  • Current status code is set to INVALID_ACCESS_MODE and no changes are made if:
    1. aggregate_object (or link_object if specified) is in a transmittal that is not open for creation or modification,.
    2. component_object is in a transmittal that is not open for creation or modification.
  • Current status code is set to FAILURE and no changes are made if the relationship could not be created for any other reason.

Input parameters:

Parameter name

Parameter data type

component_object

Object

aggregate_object Object
link_object Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
UNPUBLISHED_OBJECT
UNRESOLVED_START_OBJECT
INVALID_ACCESS_MODE
FAILURE

 

7.3.4 CloneObject

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:

  • Current status code is set to SUCCESS and the object referenced by object is made accessible through duplicate_object if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made if duplicate_object is invalid.
  • Current status code is set to INVALID_OBJECT and duplicate_object is set to DRM_NULL if the input parameter is invalid.
  • Current status code is set to OUT_OF_MEMORY and duplicate_object is set to DRM_NULL if memory cannot be allocated for the new object handle.
  • Current status code is set to FAILURE and object is set to DRM_NULL if this function fails for any other reason.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

duplicate_object

Object

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.5 CloseTransmittal

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:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_TRANSMITTAL and no changes are made if transmittal is not a valid, active transmittal.
  • Current status code is set to FAILURE and no changes are made, if transmittal is not an open transmittal.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_TRANSMITTAL
FAILURE

 

7.3.6 CMYKToCMY

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
Magenta = incoming Magenta + incoming Black
Yellow = incoming Yellow + incoming Black

As this function completes successfully, the following action occurs:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, the following action occurs:

  • Current status code is set to INVALID_PARAMETER and no changes are made, if either parameter is invalid. The output parameter is not modified.

Input parameters:

Parameter name

Parameter data type

cmyk_colour

CMYK_Data

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

cmy_colour

CMY_Data

Success status codes:

SUCCESS

Failure status codes:

INVALID_PARAMETER

 

7.3.7 CMYToCMYK

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
  (incoming Cyan,
   incoming Magenta,
   incoming Yellow)
Cyan = incoming Cyan - Black
Magenta = incoming Magenta - Black
Yellow = incoming Yellow - Black

As this function completes successfully, the following action occurs:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_PARAMETER and no changes are made, if either parameter is invalid. The output parameter is not modified.

Input parameters:

Parameter name

Parameter data type

cmy_colour

CMY_Data

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

cmyk_colour

CMYK_Colour

Success status codes:

SUCCESS

Failure status codes:

INVALID_PARAMETER

 

7.3.8 ConvertColourToGivenModel

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:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if original_colour is not valid or new_colour is not an accessor for a <DRM Colour Data> instance.
  • Current status code is set to INVALID_SOURCE_COLOUR and no changes are made, if original_colour is not a valid <DRM Colour Data> instance.
  • Current status code is set to INVALID_NEW_COLOUR_MODEL and no changes are made, if new_colour_model is invalid.

Input parameters:

Parameter name

Parameter data type

original_colour

Object

new_colour_model Colour_Model

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

new_colour

Object

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_SOURCE_COLOUR
INVALID_NEW_COLOUR_MODEL

 

7.3.9 CreateObject

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:

  • Current status code is set to SUCCESS and and the new object is created with its handle placed in new_object.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_PARAMETER and no change is made if new_object is invalid.
  • Current status code is set to INVALID_TRANSMITTALand new_object is set to DRM_NULL if transmittal is not a handle to a valid, active (i.e., open) transmittal.
  • Current status code is set to INVALID_ACCESS_MODE and and new_object is set to DRM_NULL if transmittal was opened in read-only mode.
  • Current status code is set to OUT_OF_MEMORY and new_object is set to DRM_NULL if memory cannot be allocated for new_object.
  • Current status code is set to FAILURE and new_object is set to DRM_NULL if new_object_type does not correspond to a valid, concrete (i.e., not abstract) DRM class.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

new_object_type DRM_Class

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

new_object

Object

Success status codes:

SUCCESS

Failure status codes:

INVALID_PARAMETER
INVALID_TRANSMITTAL
INVALID_ACCESS_MODE
OUT_OF_MEMORY
FAILURE

 

7.3.10 CreateSearchFilter

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:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if either the search_filter or rules parameters are invalid.
  • Current status code is set to OUT_OF_MEMORY and search_filter is set to NULL if the API could not allocate memory for the new search filter.
  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if an illegal expression was specified by the rules parameter (for example, if an AND expression within the array only had one parameter).

Input parameters:

Parameter name

Parameter data type

implementation_identifier

String

rules Search_Rule[*]

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

search_filter

Search_Filter

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
OUT_OF_MEMORY
FAILURE

 

7.3.11 CreateSpatialSearchBoundary

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:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if either the search_bounds or search_boundary are invalid.
  • Current status code is set to OUT_OF_MEMORY and search_boundary is set to NULL if the API could not allocate memory for the new search boundary.
  • Current status code is set to FAILURE and no changes are made, if:
    1. an invalid boundary was specified by the search_bounds parameter (e.g., the minimal and maximal points are not in the same SRF), or
    2. an invalid search_bounds_closure, search_quality, inclusion, or search_dimension was specified.

Input parameters:

Parameter name

Parameter data type

implementation_identifier

String

search_bounds Search_Bounds
search_bounds_closure Search_Bounds_Closure
search_quality Search_Quality
inclusion Inclusion_Choice
search_dimension Search_Dimension

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

search_boundary

Search_Boundary

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
OUT_OF_MEMORY
FAILURE

 

7.3.12 DetermineSpatialInclusion

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:

  • Current status code is set to SUCCESS and the output parameters are set to the appropriate values if valid parameters were passed in, and the relationship between the object and the boundary was determined.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and none of the output parameters are modified if the search_bounds parameter is invalid or if all the output parameters are invalid.
  • Current status code is set to UNRESOLVED_START_OBJECT and all provided output parameters are set to FALSE  if object is an unresolved SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and all provided output parameters are set to FALSE if an unresolved object was encountered and could not be resolved.
  • Current status code is set to FAILURE and all output parameters are set to FALSE if:
    1. an invalid boundary was specified by the search_bounds parameter (e.g., the minimal and maximal points are not in the same SRF);
    2. if an invalid search_bounds_closure, search_quality, or search_dimension was specified; or
    3. the determination of the object/search area relationship could not be made.

Input parameters:

Parameter name

Parameter data type

object

Object

search_bounds Search_Bounds
search_bounds_closure Search_Bounds_Closure
search_quality Search_Quality
search_dimension Search_Dimension

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

object_fully_included

Boolean

object_partly_included Boolean
object_includes_search_bounds Boolean

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
UNRESOLVED_START_OBJECT
UNRESOLVED_OBJECT
FAILURE

 

7.3.13 FreeIterator

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:

  • Current status code is set to SUCCESS and all actions succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to FAILURE and no changes are made, if to_free was not a valid iterator.

Input parameters:

Parameter name

Parameter data type

to_free

Iterator

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

FAILURE

 

7.3.14     FreeObject

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 CreateObject).

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:

  • Current status code is set to SUCCESS and the reference count for this object is decremented a valid parameter was passed in and all operations succeeded. The actual object is not freed until the reference count becomes zero, but  this object handle is no longer valid, since any contextual information associated with it (e.g., inheritance context) is released.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT and nothing is changed if to_free was not a valid object.
  • Current status code is set to FAILURE and nothing is changed if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

to_free

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
FAILURE

 

7.3.15 FreePackedHierarchy

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:

  • Current status code is set to SUCCESS and the packed hierarchy data is freed if a valid parameter was passed in and all operations succeeded. In this case, the fields of to_free are cleared.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_ACCESS_MODE and to_free is left unaltered if the to_free parameter is invalid.
  • Current status code is set to FAILURE no changes are made if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

to_free

Packed_Hierarchy

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
FAILURE

 

7.3.16 FreeRemainingObjectsList

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:

  • Current status code is set to SUCCESS and the remaining objects data is freed if valid parameters were passed in and all operations succeeded. In this case, the fields of to_free are cleared.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and to_free is left unaltered if to_free is invalid.
  • Current status code is set to INVALID_OBJECT and to_free is left unaltered if to_free contains an entry that is not a handle to a valid, active (i.e., unfreed) object, or if to_free contains a non-NULL entry that is not a handle to a valid, active (i.e., unfreed) object.
  • Current status code is set to FAILURE and no changes are made if any of the fields of the input parameter are unset.

Input parameters:

Parameter name

Parameter data type

to_free

Remaining_Objects_List

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
FAILURE

 

7.3.17 FreeRemainingPackedHierarchiesList

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:

  • Current status code is set to SUCCESS and the remaining packed hierarchy data is freed if valid parameters were passed in. In this case, the fields of to_free are cleared.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and to_free is left unaltered if to_free is invalid.
  • Current status code is set to FAILURE and no changes are made if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

to_free

Remaining_Packed_Hierarchies_List

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
FAILURE

 

7.3.18 FreeSearchFilter

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:

  • Current status code is set to SUCCESS and the search filter is freed if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_ACCESS_MODE and no changes are made, if to_free is not a valid search filter.

Input parameters:

Parameter name

Parameter data type

to_free

Search_Filter

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

FAILURE

 

7.3.19 FreeSpatialSearchBoundary

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:

  • Current status code is set to SUCCESS and the search boundary is freed if a valid parameter was passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_ACCESS_MODE and no changes are made, if to_free is not a valid spatial search boundary.

Input parameters:

Parameter name

Parameter data type

to_free

Search_Boundary

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

FAILURE

 

7.3.20 FreeTransmittal

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:

  • Current status code is set to SUCCESS and the given handle to the transmittal is freed if a valid parameter was passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_TRANSMITTAL and no changes are made if to_free is invalid or if to_free was allocated by 7.3.69 OpenTransmittalByLocation or 7.3.70 OpenTransmitalByName.
  • Current status code is set to FAILURE, and no changes are made, if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

to_free

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_TRANSMITTAL
FAILURE

 

7.3.21 GetAggregate

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:

  • Current status code is set to SUCCESS and the output parameters are set to the appropriate values if valid parameters were passed in and one valid aggregate of the specified class was found.
  • Current status code is set to DIFFERENT_TRANSMITTAL and aggregate_object is set to point to the aggregate, and link_class_object is set appropriately, unless a NULL for that value was provided, if the following conditions are met:
    1. valid parameters were passed in,
    2. the user requested that the API automatically resolve inter-transmittal references (ITR),
    3. an ITR reference was encountered in searching for the aggregate, and
    4. the iterator successfully resolved it and retrieved the aggregate from the new, different transmittal.
  • Current status code is set to UNRESOLVED_OBJECT and the output parameters are set as for the SUCCESS case if valid parameters were passed in and only one object was found that satisfied the specified criteria, but the aggregate object is unresolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if object is invalid.
  • Current status code is set to INVALID_OBJECT and no changes are made, if object is invalid or drm_class specifies an invalid value. In this case, the output parameters return NULL.
  • Current status code is set to UNRESOLVED_START_OBJECT and the output parameters return NULL if object is unresolved.
  • Current status code is set to NO_OBJECT and the output parameters return NULL if no aggregate object of the specified DRM class could be found.
  • Current status code is set to OUT_OF_MEMORY and the output parameters return NULL if memory could not be allocated.
  • Current status code is set to FAILURE and the output parameters return NULL if itr_traversal is not valid.

Input parameters:

Parameter name

Parameter data type

object

Object

drm_class DRM_Class
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

aggregate_object

Object

link_class_object Object

Success status codes:

SUCCESS
DIFFERENT_TRANSMITTAL
UNRESOLVED_OBJECT

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
NO_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.22 GetAssociate

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:

  • Current status code is set to SUCCESS and associate_object is set to point to the associate, and link_class_object is set appropriately if provided, if valid parameters were passed in, only one object was found that satisfied the specified criteria, and no ITR references were involved.
  • Current status code is set to DIFFERENT_TRANSMITTAL and the output parameters are set as for the SUCCESS case,  if the following conditions are met:
    1. valid parameters were passed in,
    2. the user requested that the API automatically resolve inter-transmittal references (ITR),
    3. an ITR reference was encountered in searching for the associate, and
    4. the iterator successfully resolved it and retrieved the associate from the new, different transmittal.
  • Current status code is set to UNRESOLVED_OBJECT and the output parameters are set as for the SUCCESS case if valid parameters were passed in and only one object was found that satisfied the specified criteria, but the aggregate object is unresolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if object is invalid.
  • Current status code is set to INVALID_OBJECT and no changes are made, if object is invalid or drm_class specifies an invalid value. In this case, the output parameters return NULL.
  • Current status code is set to UNRESOLVED_START_OBJECT and the output parameters return NULL if object is unresolved.
  • Current status code is set to NO_OBJECT and the output parameters return NULL if no aggregate object of the specified DRM class could be found.
  • Current status code is set to OUT_OF_MEMORY and the output parameters return NULL if memory could not be allocated.
  • Current status code is set to FAILURE and the output parameters return NULL if itr_traversal is not valid.

Input parameters:

Parameter name

Parameter data type

object

Object

drm_class DRM_Class
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

associate_object

Object

link_class_object Object

Success status codes:

SUCCESS
DIFFERENT_TRANSMITTAL
UNRESOLVED_OBJECT

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
NO_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.23 GetColourModel

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 7.3.85 SetColourModel was never called. In this case, the colour model that will be used to return <DRM Colour Data> objects from the given transmittal depends entirely on the transmittal. The colour model used to return data will be the colour model that was used when producing the transmittal. This is the default case.

As this function completes successfully, the following action occurs:

  • Current status code is set to SUCCESS and colour_model is set to the colour model currently being used by the API when returning <DRM Colour Data> instances from the specified transmittal, if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and colour_model is not affected, if colour_model was invalid.
  • Current status code is set to and colour_model is not affected, if transmittal is not a handle to a valid, active (i.e., open and unfreed) transmittal.
  • Current status code is set to FAILURE and colour_model is not affected if the default colour model is in effect but transmittal does not specify a colour model.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

colour_model

Colour_Model

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
FAILURE

 

7.3.24 GetComponent

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:

  1. automatically resolve such references and continue the search within the new transmittal;
  2. report all ITR references without resolving them; or
  3. ignore such references completely and continue to search within the current transmittal.

As this function completes successfully, one of the following actions occurs:

  • Current status code is set to SUCCESS and component_object is set to point to the component, and link_class_object is set appropriately if provided, if valid parameters were passed in, only one object was found that satisfied the specified criteria, and no ITR references were involved.
  • Current status code is set to DIFFERENT_TRANSMITTAL and the output parameters are set as for the SUCCESS case,  if the following conditions are met:
    1. valid parameters were passed in,
    2. the user requested that the API automatically resolve inter-transmittal references (ITR),
    3. an ITR reference was encountered in searching for the associate, and
    4. the iterator successfully resolved it and retrieved the associate from the new, different transmittal.
  • Current status code is set to UNRESOLVED_OBJECT and the output parameters are set as for the SUCCESS case if valid parameters were passed in and only one object was found that satisfied the specified criteria, but the aggregate object is unresolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if object is invalid.
  • Current status code is set to INVALID_OBJECT and no changes are made, if object is invalid or drm_class specifies an invalid value. In this case, the output parameters return NULL.
  • Current status code is set to UNRESOLVED_START_OBJECT and the output parameters return NULL if object is unresolved.
  • Current status code is set to NO_OBJECT and the output parameters return NULL if no aggregate object of the specified DRM class could be found.
  • Current status code is set to OUT_OF_MEMORY and the output parameters return NULL if memory could not be allocated.
  • Current status code is set to FAILURE and the output parameters return NULL if itr_traversal is not valid.

Input parameters:

Parameter name

Parameter data type

object

Object

drm_class DRM_Class
directly_attach_table_components Boolean
process_inheritance Boolean
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

component_object

Object

link_class_object Object

Success status codes:

SUCCESS
DIFFERENT_TRANSMITTAL
UNRESOLVED_OBJECT

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
NO_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.25 GetContextTransformation

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:

  • Current status code is set to SUCCESS and the current effective transformation of object is returned in matrix, if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and matrix is left unchanged, if matrix is invalid.
  • Current status code is set to INVALID_OBJECT and the identity matrix is returned, if object is not valid.
  • Current status code is set to UNRESOLVED_START_OBJECT and the identity matrix is returned, if object is unresolved.
  • Current status code is set to FAILURE and the identity matrix is returned, if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

matrix

Matrix_4x4

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
FAILURE

7.3.26 GetDataTableData

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:

  • Current status code is set to SUCCESS and and the requested data is returned, if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to UNRESOLVED_START_OBJECT and no changes are made, if data_table was a handle to an unresolved object.
  • Current status code is set to DELETED_OBJECT and no changes are made, if data_table was a handle to an object that had been removed from its transmittal.
  • Current status code is set to OUT_OF_MEMORY and no changes are made, if the implementation was not able to allocate enough memory to return the data.
  • Current status code is set to INACTIONABLE_FAILURE and no changes are made, if the function failed for any other reason.

Input parameters:

Parameter name

Parameter data type

data_table

Object

extents Data_Table_Extents
element_count Integer_Unsigned
table_property_description_number  Integer_unsigned[element_count

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

results

Data_Table_Data[*]

Success status codes:

SUCCESS

Failure status codes:

UNRESOLVED_START_OBJECT
DELETED_OBJECT
OUT_OF_MEMORY
INACTIONABLE_FAILURE

 

7.3.27 GetDRMClass

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:

  • Current status code is set to SUCCESS and object_type is set appropriately if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and object_type is left unaltered if object_type is not valid.
  • Current status code is set to INVALID_OBJECT and object_type returns NULL if object is not valid.
  • Current status code is set to UNRESOLVED_OBJECT and object_type returns NULL if object is not valid.
  • Current status code is set to FAILURE and object_type returns NULL if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

object_type

DRM_Class

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
FAILURE

 

7.3.28 GetFields

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:

  • Current status code is set to SUCCESS and the fields of the specified object are returned in fields if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT and the NULL field value is returned if object is not a valid SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and the NULL field value is returned if object is an unresolved object.
  • Current status code is set to OUT_OF_MEMORY and the NULL field value is returned if the implementation was unable to allocate sufficient memory.
  • Current status code is set to FAILURE and the NULL field value is returned if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

fields

DRM_Class_Fields[*]

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
UNRESOLVED_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.29 GetIDForObject

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:

  • Current status code is set to SUCCESS and a string corresponding to the given object will be returned in id, if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and id is unaffected if id is NULL.
  • Current status code is set to INVALID_OBJECT and id is set to to the empty string if object is not a valid SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and id is set to the empty string if object is an unresolved object.
  • Current status code is set to FAILURE and id is set to the empty string if the ID string cannot be retrieved for any other reason.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

id

String

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
FAILURE

 

7.3.30 GetImageData

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:

  • Current status code is set to SUCCESS and the requested data is returned in data, if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and data is unaffected if data is invalid.
  • Current status code is set to INVALID_OBJECT and data is returned NULL if image is not a valid <DRM Image> object.
  • Current status code is set to UNRESOLVED_OBJECT and data is returned NULL if image is an unresolved object.
  • Current status code is set to OUT_OF_MEMORY and no changes are made if the implementation was unable to allocate sufficient memory.
  • Current status code is set to FAILURE and data is returned NULL , if:
    1. no image data has yet been specified for image;
    2. mip_level s invalid for image;
    3. level_count of image is zero or its mip_fields_array is empty; or
    4. any of the start or stop texels were invalid for image.

Input parameters:

Parameter name

Parameter data type

image

Object

start_texel Image_Texel_Location_3D
stop_texel Image_Texel_Location_3D
mip_level Short_Integer_Unsigned

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

image_data

Image_Data

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.31 GetImplementationIdentifier

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:

  • Current status code is set to SUCCESS and the implementation identifier associated with the object’s API implementation is returned if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and implementation_identifier is left unaltered if implementation_identifier is invalid.
  • Current status code is set to INVALID_OBJECT and implementation_identifier is left unaltered if image is not a valid SEDRIS object.
  • Current status code is set to FAILURE and and implementation_identifier is left unaltered if: any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

implementation_identifier

String

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
FAILURE

 

7.3.32 GetIterationLengthRemaining

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:

  • Current status code is set to SUCCESS and the number of objects left to be returned by the iterator is returned in count if all parameters are valid.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and count is left unaltered if count is invalid.
  • Current status code is set to FAILURE and count is left unaltered if count is invalid.

Input parameters:

Parameter name

Parameter data type

iterator

Iterator

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

count

Integer_Unsigned

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
FAILURE

 

7.3.33 GetLastFunctionStatus

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:

  • Current status code is set to SUCCESS and last_function_status and error_description are set appropriately.

As this function completes in error, the following action occurs:

  • Current status code is set to INACTIONABLE_FAILURE when any error occurs and last_function_status nor error_description are left unaltered. The current error description shall be set to a value that reflects the reason why this function failed.

Input parameters:

Parameter name

Parameter data type

None

 

Input/output parameters:

Parameter name

Parameter data type

None

Output parameters:

Parameter name

Parameter data type

last_function_status

Status_Code

error_description String

Success status codes:

SUCCESS

Failure status codes:

INACTIONABLE_FAILURE

 

7.3.34 GetNextObject

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:

  • Current status code is set to SUCCESS and next_object is set to point to the next object from the iterator if valid parameters were passed in and either no inter-transmittal references (ITRs) were encountered in searching for the next object, or the iterator is configured to ignore ITR references.
  • Current status code is set to DIFFERENT_TRANSMITTAL and next_object returns the next object from the iterator if:
    1. valid parameters were passed in,
    2. the iterator is configured to automatically resolve inter-transmittal references (ITR),
    3. an ITR reference was encountered in searching for the next object, and
    4. the iterator successfully resolved it and continued to search in the new, different transmittal until the next object from the iterator was found.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the output parameter values are left unaltered if next_object is NULL.
  • Current status code is set to UNRESOLVED_OBJECT and the output parameter values are left unaltered if next_object is NULL.
  • Current status code is set to NO_OBJECT and the output parameter values are left unaltered if next_object is NULL.
  • Current status code is set to OUT_OF_MEMORY and the output parameter values are left unaltered if next_object is NULL.
  • Current status code is set to FAILURE and the output parameter values are left unaltered if next_object is NULL.

Input parameters:

Parameter name

Parameter data type

iterator

Iterator

Input/output parameters:

Parameter name

Parameter data type

next_object

Object

Output parameters:

Parameter name

Parameter data type

link_class_object

Object

Success status codes:

SUCCESS
DIFFERENT_TRANSMITTAL

Failure status codes:

INVALID_REQUIRED_PARAMETER
UNRESOLVED_OBJECT
NO_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.35 GetNthAssociateOfDRMClass

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:

  • Current status code is set to SUCCESS and the desired associate object is returned in associate_object and link_class_object is set appropriately if valid parameters were passed in and all operations succeeded.
  • Current status code is set to UNRESOLVED_OBJECT and the output parameters are set as for the SUCCESS case if valid parameters were passed in and valid objects are returned, but the object returned in associate_object is unresolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the output parameter values are left unaltered if associate_object is NULL.
  • Current status code is set to INVALID_OBJECT and the output parameter values are left unaltered if associate_object is NULL.
  • Current status code is set to UNRESOLVED_START_OBJECT and the output parameters are returned NULL if from_object is an unresolved SEDRIS object.
  • Current status code is set to NO_OBJECT and the output parameters are returned NULL if the from_object did not contain n associate objects of the desired class.
  • Current status code is set to OUT_OF_MEMORY and the output parameters are returned NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and the output parameters are returned NULL if:
    1. n was zero (since this is a one-based index),
    2. an invalid value was supplied for desired_associate_class, or
    3. the given class of associate is not ordered for the given from_object.

Input parameters:

Parameter name

Parameter data type

from_object

Object

desired_component_type DRM_Class
n Integer_Positive

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

associate_object

Object

link_class_object Object

Success status codes:

SUCCESS
UNRESOLVED_OBJECT

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
NO_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.36 GetNthComponentOfDRMClass

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:

  • Current status code is set to SUCCESS and the nth component object is returned in component_object  and link_class_object is set appropriately if valid parameters were passed in and all operations succeeded.
  • Current status code is set to UNRESOLVED_OBJECT and the output parameters are set as for the SUCCESS case if valid parameters were passed in and valid objects are returned, but the object returned in component_object is unresolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the output parameter values are left unaltered if component_object is NULL.
  • Current status code is set to INVALID_OBJECT and the output parameters are set to NULL if aggregate_object is not a valid object.
  • Current status code is set to UNRESOLVED_START_OBJECT and the output parameters are returned NULL if aggregate_object is an unresolved SEDRIS object.
  • Current status code is set to NO_OBJECT and the output parameters are returned NULL if the aggregate_object did not contain n associate objects of the desired class.
  • Current status code is set to OUT_OF_MEMORY and the output parameters are returned NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and the output parameters are returned NULL if:
    1. n was zero (since this is a one-based index),
    2. an invalid value was supplied for desired_component_class, or
    3. the given class of component is not ordered for the given aggregate_object .

Input parameters:

Parameter name

Parameter data type

aggregate_object

Object

desired_component_type DRM_Class
n Integer_Positive

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

component_object

Object

link_class_object Object

Success status codes:

SUCCESS
UNRESOLVED_OBJECT

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
NO_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.37 GetNumberOfPathsToTransmittalRoot

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:

  • Current status code is set to SUCCESS and number_of_paths is set appropriately if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT and number_of_paths is set to zero (0), if object is not a valid SEDRIS object.
  • Current status code is set to UNRESOLVED_START_OBJECT and number_of_paths is set to zero if object is unresolved.
  • Current status code is set to FAILURE and number_of_paths is set to zero if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

number_of_paths

Integer_Unsigned

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
UNRESOLVED_START_OBJECT
FAILURE

 

7.3.38 GetObjectForID

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:

  • Current status code is set to SUCCESS and all actions succeeded if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and no changes are made, if object is NULL.
  • Current status code is set to INVALID_OBJECT and object is set to NULL if id is not a valid object identifier.
  • Current status code is set to FAILURE and object is set to NULL if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

id

String

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

object

Object

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
FAILURE

 

7.3.39 GetObjectReferenceCount

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:

  • Current status code is set to SUCCESS and reference_count is set appropriately if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and reference_count is left unaltered if reference_count was NULL.
  • Current status code is set to INVALID_OBJECT and reference_count is set to zero (0) if object is not a valid SEDRIS object.
  • Current status code is set to FAILURE and reference_count t is set to zero (0) if the function cannot execute successfully due to an implementation dependent problem.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

reference_count

Short_Integer_Unsigned

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
FAILURE
OUT_OF_MEMORY

 

7.3.40 GetPackedHierarchy

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:

  • Current status code is set to SUCCESS and the packed hierarchy is returned in hierarchy if valid parameters were passed in.
  • Current status code is set to DIFFERENT_TRANSMITTAL and the packed hierarchy is returned in hierarchy if valid parameters were passed in but one or more objects encountered were contained in a different transmittal to root_object.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to UNRESOLVED_OBJECT and the packed hierarchy is returned in hierarchy if valid parameters were passed in but one or more objects encountered were not resolved. In this case, the object_is_resolved field is set to FALSE in the heirarchy data structure for those objects that are unresolved.
  • Current status code is set to INVALID_REQUIRED_PARAMETER and hierarchy is unaltered if hierarchy is NULL.
  • Current status code is set to INVALID_OBJECT and hierarchy is unaltered if root_object is not a valid SEDRIS object.
  • Current status code is set to OUT_OF_MEMORY and hierarchy is unaltered if the implementation was unable to allocate sufficient memory.
  • Current status code is set to FAILURE and hierarchy is unaltered if itr_traversal is not a valid value.

Input parameters:

Parameter name

Parameter data type

root_object

Object

directly_attach_table_components Boolean
process_inheritance Boolean
hierarchy_depth Integer_Unsigned
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

hierarchy

Packed_Hierarchy

Success status codes:

SUCCESS
DIFFERENT_TRANSMITTAL

Failure status codes:

UNRESOLVED_OBJECT
INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.41 GetPublishedLabels

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:

  • Current status code is set to SUCCESS and the output parameters are set appropriately if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the output parameter values are left unaltered, if either label_list is NULL or number_labels is invalid.
  • Current status code is set to INVALID_OBJECT and label_list is returned empty if object is not a valid object.
  • Current status code is set to UNRESOLVED_OBJECT and label_list is returned empty if object is not a resolved object.
  • Current status code is set to UNPUBLISHED_OBJECT and label_list is returned empty if object is not a published object.
  • Current status code is set to FAILURE and label_list is returned empty if the function fails for any other reason.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

number_labels

Integer_Unsigned

label_list String[number_labels]

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
UNPUBLISHED_OBJECT
FAILURE

 

7.3.42 GetPublishedObjectList

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:

  • Current status code is set to SUCCESS and all actions succeeded if valid parameters were passed in and published_object_list was successfully returned.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the output parameters are left unchanged if either of the two output parameters are invalid.
  • Current status code is set to INVALID_TRANSMITTAL and published_object_list is returned empty if transmittal is not a valid transmittal.
  • Current status code is set to OUT_OF_MEMORY and published_object_list is returned empty if memory could not be allocated.
  • Current status code is set to FAILURE and published_object_list is returned empty if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

number_published_objects

Integer_Unsigned

published_object_list Object[number_published_objects]

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
OUT_OF_MEMORY
FAILURE

 

7.3.43 GetReferencedTransmittalList

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:

  • Current status code is set to SUCCESS and the output parameters are set appropriately, if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the output parameters are left unaltered if either of the two output parameters are invalid.
  • Current status code is set to INVALID_TRANSMITTAL and an empty list is returned if transmittal is not a valid transmittal.
  • Current status code is set to OUT_OF_MEMORY and an empty list is returned if memory could not be allocated.
  • Current status code is set to FAILURE and an empty list is returned if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

transmittal_name_count 

Integer_Unsigned

transmittal_name_list

String[transmittal_name_count]

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
OUT_OF_MEMORY
FAILURE

 

7.3.44 GetRelationCounts

Table 7.45 — GetRelationCounts

Property

Description

Semantics:

Given an object, this function returns the counts of

  1. the number of components,

  2. the number of aggregates, and

  3. the number of associates

that the specified object has.

As this function completes successfully, the following action occurs:

  • Current status code is set to SUCCESS and he output parameters are set to the values of the requested counts.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to UNRESOLVED_START_OBJECT and no changes are made, if object is a handle to an unresolved object.
  • Current status code is set to DELETED_OBJECT and no changes are made, if object is a handle to an object that had been removed from its transmittal.
  • Current status code is set to INACTIONABLE_FAILURE if the function failed for any other reason.

Input parameters:

Parameter name

Parameter data type

object

Object

itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

component_count

Integer_Unsigned

aggregate_count Integer_Unsigned
association_count Integer_Unsigned

Success status codes:

SUCCESS

Failure status codes:

UNRESOLVED_START_OBJECT
DELETED_OBJECT
INACTIONABLE_FAILURE

 

7.3.45 GetRemainingObjectsList

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:

  • Current status code is set to SUCCESS and all remaining objects are returned in remaining_objects if valid parameters were passed in.
  • Current status code is set to DIFFERENT_TRANSMITTAL and all remaining objects are returned in remaining_objects if valid parameters were passed in but one or more objects encountered were contained in different transmittals from the iterator’s start_object.
  • Current status code is set to UNRESOLVED_OBJECT and all remaining objects are returned in remaining_objects if valid parameters were passed in but one or more objects encountered were not resolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and remaining_objects is left unaltered if remaining_objects is invalid.
  • Current status code is set to NO_OBJECT and remaining_objects is returned with a zero (0) count and empty lists if the iterator is out of objects to return.
  • Current status code is set to OUT_OF_MEMORY and remaining_objects is returned with a zero (0) count and empty lists if memory could not be allocated.
  • Current status code is set to FAILURE and remaining_objects is returned with a zero (0) count and empty lists if this function fails for any other reason.

Input parameters:

Parameter name

Parameter data type

parameter_i

Data_Type_For_Parameter_i

Input/output parameters:

Parameter name

Parameter data type

parameter_io

Data_Type_For_Parameter_io

Output parameters:

Parameter name

Parameter data type

parameter_o

Data_Type_For_Parameter_o

Success status codes:

SUCCESS
DIFFERENT_TRANSMITTAL
UNRESOLVED_OBJECT

Failure status codes:

INVALID_REQUIRED_PARAMETER
NO_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.46 GetRemainingPackedHierarchies

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:

  • Current status code is set to SUCCESS and remaining_hierarchies returns the remaining hierarchy list data if valid parameters were passed in.
  • Current status code is set to DIFFERENT_TRANSMITTAL and remaining_hierarchies returns the remaining hierarchy list data if valid parameters were passed in but one or more objects encountered were contained in different transmittals than the iterator’s start_object.
  • Current status code is set to UNRESOLVED_OBJECT and remaining_hierarchies returns the remaining hierarchy list data if valid parameters were passed in, objects were left that have not yet been returned, and one or more objects encountered were not resolved. In this case, the object_is_resolved field is set to FALSE in each of the Packed_Hierarchy data structures for those objects that are unresolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and remaining_hierarchies is left unaltered if remaining_hierarchies is invalid.
  • Current status code is set to NO_OBJECT and remaining_hierarchies is returned empty if the iterator is out of objects to return.
  • Current status code is set to FAILURE and remaining_hierarchies is returned empty if the iterator is invalid.

Input parameters:

Parameter name

Parameter data type

iterator

Iterator

hierarchy_depth Integer_Unsigned

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

remaining_hierarchies 

Remaining_Packed_Hierarchies_List

Success status codes:

SUCCESS
DIFFERENT_TRANSMITTAL
UNRESOLVED_OBJECT

Failure status codes:

INVALID_REQUIRED_PARAMETER
NO_OBJECT
FAILURE

 

7.3.47 GetRootObject

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:

  • Current status code is set to SUCCESS and all actions succeeded if valid parameters were passed in and the root object was successfully returned.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and root_object is left unaltered if root_object is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and root_object is set to NULL if transmittal is not a valid transmittal.
  • Current status code is set to FAILURE and root_object is set to NULL if the transmittal does not have a root object.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

root_object

Object

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL

FAILURE

 

7.3.48 GetSortKey

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:

  • Current status code is set to SUCCESS and sort_key is set appropriately if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and sort_key is left unaltered if sort_key is invalid.
  • Current status code is set to INVALID_OBJECT and sort_key returns a zero if the object is not a valid SEDRIS object.
  • Current status code is set to FAILURE and sort_key returns a zero if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

sort_key

Integer_Unsigned

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
FAILURE

 

7.3.49 GetSRFParameters

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:

  • Current status code is set to SUCCESS and the scoping SRF parameters are returned in srf_parameters if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and srf_parameters is left unaltered if srf_parameters is invalid.
  • Current status code is set to INVALID_OBJECT and srf_parameters is left unaltered if the object is not valid.
  • Current status code is set to FAILURE and srf_parameters is left unaltered if the specified object has no scoping SRF and either 7.3.98 UseDefaultSRFParameters was called more recently than 7.3.92 SetSRFParameters or 7.3.92 SetSRFParameters was never called.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

srf_parameters

SRF_Parameters

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
FAILURE

 

7.3.50 GetTransmittalFromObject

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:

  • Current status code is set to SUCCESS and a handle to the transmittal containing the object is returned if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and transmittal is unaffected if transmittal is invalid.
  • Current status code is set to INVALID_OBJECT and transmittal is set to NULL if object is not a valid object from an open transmittal.
  • Current status code is set to UNRESOLVED_START_OBJECT and transmittal is set to NULL if object is unresolved.
  • Current status code is set to OUT_OF_MEMORY and transmittal is set to NULL if memory could not be allocated.
  • Current status code is set to FAILURE and transmittal is set to NULL if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.51 GetTransmittalLocation

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:

  • Current status code is set to SUCCESS and the location from which the transmittal was opened is returned if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and location is left unaltered if location is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and location is set to an empty string if transmittal is not a valid open transmittal.
  • Current status code is set to OUT_OF_MEMORY and location is set to an empty string if memory could not be allocated.
  • Current status code is set to FAILURE and location is set to an empty string if the function fails for any other reason.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

location

URN

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
OUT_OF_MEMORY
FAILURE

 

7.3.52 GetTransmittalName

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:

  • Current status code is set to SUCCESS and the transmittal name is returned in name if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and name is left unaltered if name is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and name is returned as an empty URN if transmittal is not a valid, open SEDRIS transmittal.
  • Current status code is set to OUT_OF_MEMORY and name is returned as an empty URN if memory could not be allocated.
  • Current status code is set to FAILURE and name is returned as an empty URN if this function fails for any other reason.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

name

URN

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
OUT_OF_MEMORY
FAILURE

 

7.3.53 GetTransmittalVersionInformation

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:

  • Current status code is set to SUCCESS and the output parameters are set appropriately if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and none of the output parameters are affected if any output parameter is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and none of the output parameters are affected if any output parameter is invalid.
  • Current status code is set to FAILURE and none of the output parameters are affected if any output parameter is invalid.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

major_DRM_version

Short_Integer_Unsigned

minor_DRM_version Byte_Unsigned
interim_DRM_version Character
major_EDCS_version Short_Integer_Unsigned
minor_EDCS_version Byte_Unsigned
interim_EDCS_version Character
major_SRM_version Short_Integer_Unsigned
minor_SRM_version Byte_Unsigned
interim_SRM_version Character

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
FAILURE

 

7.3.54 GetUniqueTransmittalID

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:

  • Current status code is set to SUCCESS and identifier is set appropriately if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and identifier is left unchanged if identifier is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and identifier is returned empty if transmittal is not a valid open transmittal.
  • Current status code is set to OUT_OF_MEMORY and identifier is returned empty if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and identifier is returned empty if any implementation-specific error occurs.

 

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

identifier

String

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
OUT_OF_MEMORY
FAILURE

 

7.3.55 GetUnresolvedObjectFromPublishedLabel

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:

  • Current status code is set to SUCCESS and produces the requested handle in object if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and object remains unaltered if transmittal_name, object_label, or object is invalid.
  • Current status code is set to INVALID_TRANSMITTAL_NAME and object returns NULL if the transmittal URN is not valid according to the SEDRIS URN syntax rules.
  • Current status code is set to INVALID_OBJECT_LABEL and object returns NULL if object_label is not valid according to the label syntax rules.
  • Current status code is set to FAILURE and object returns NULL if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

transmittal_name

URN

object_label

String

implementation_identifier String

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

object

Object

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL_NAME
INVALID_OBJECT_LABEL
FAILURE

 

7.3.56 GetUserData

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:

  • Current status code is set to SUCCESS and user_data is set appropriately, if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and user_data is left unaltered if user_data is invalid.
  • Current status code is set to INVALID_OBJECT and user_data is set to NULL if object is not a valid SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and user_data is set to NULL if object is not a currently resolved object.
  • Current status code is set to FAILURE and user_data is set to NULL if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

user_data

User_Data

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
FAILURE

 

7.3.57 InitializeAggregateIterator

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:

  1. They contain the start_object as an immediate component (a component that is exactly one link away) via a two-way aggregation relationship.

  2. They satisfy the rules specified in the search filter, if a search filter is defined for the iterator. If NULL is passed in for the search filter, no filtering is applied, and only condition a) need be satisfied.

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:

  • Current status code is set to SUCCESS and a handle for the newly created aggregate iterator is returned in iterator, if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and iterator is left unaltered if iterator is invalid.
  • Current status code is set to INVALID_OBJECT and iterator returns NULL if start_object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_START_OBJECT and iterator returns NULL if start_object is unresolved.
  • Current status code is set to OUT_OF_MEMORY and iterator returns NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and iterator returns NULL if:
    1. itr_traversal is not valid; or
    2. a search filter is provided, but is not a handle to a valid, active (i.e., unfreed) search filter.

Input parameters:

Parameter name

Parameter data type

start_object

Object

filter Search_Filter
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

iterator

Iterator

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.58 InitializeAssociateIterator

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:

  1. They are associated to the start_object as an immediate associate (an associate that is exactly one link away) via either a two-way association, or via a one-way association from the start_object to the associated object. If an object is associated to the start_object via a one-way association from the associated object to the start_object, the associated object will not be included in the list of objects returned by this iterator since, if it is a one-way association into the start_object, the start_object, by definition, does not know which objects are at the other end of the one-way associations.
  2. They satisfy the rules specified in the search filter, if a search filter is defined for the iterator. If NULL is passed in for the search filter, no filtering is applied, and only condition a) need be satisfied.

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:

  • Current status code is set to SUCCESS and a handle for the newly created associate iterator returned in iterator if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and iterator is left unaltered if iterator is invalid.
  • Current status code is set to INVALID_OBJECT and iterator returns NULL if start_object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_START_OBJECT and iterator returns NULL if start_object is unresolved.
  • Current status code is set to OUT_OF_MEMORY and iterator returns NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and iterator returns NULL if:
    1. itr_traversal is not valid; or
    2. a search filter is provided, but is not a handle to a valid, active (i.e., unfreed) search filter.

Input parameters:

Parameter name

Parameter data type

start_object

Object

filter Search_Filter
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

iterator

Iterator

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
OUT_OF_MEMORY

 

7.3.59 InitializeComponentIterator

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:

  1. They are components, either directly or transitively, of the start_object. That is, they are contained within the aggregation tree that is rooted at the start_object.

  2. They satisfy the rules specified in the search filter, if a search filter is defined for the iterator. If no search filter is provided, no filtering is applied, and only conditions a) and c) need be satisfied. A search filter can include a maximum search depth restriction. If such a restriction is applied, the sub-tree rooted at the start_object shall only be searched until that maximum search depth has been reached. Components beyond that depth shall not be searched.

  3. They fall within the bounds of the spatial search boundary as dictated by the inclusion rules specified for that spatial search boundary.If no spatial search boundary is specified, no location-based filtering shall be applied, and only conditions a) and b) need be satisfied.

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:

  1. If an <DRM Property Set Index> would otherwise be returned by the component iterator, the <DRM Property Set Index> object shall be automatically replaced by the corresponding objects referenced by the primary (1st) <DRM Property Set> of the referenced <DRM Property Set Table Group>.
  2. If a <DRM Colour Index> would otherwise be returned by the component— iterator, the <DRM Colour Index> object shall be replaced by an <DRM Inline Colour> containing the same <DRM Primitive Colour> as the <DRM Primitive Colour> that would have been referenced by the <DRM Colour Index> (through the default <DRM Colour Table> of the associated <DRM Colour Table Group>).

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:

  • Current status code is set to SUCCESS and iterator returns a handle for the newly created component iterator if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and iterator is left unaltered if iterator is invalid.
  • Current status code is set to INVALID_OBJECT and iterator returns NULL if start_object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_START_OBJECT and iterator returns NULL if start_object is unresolved.
  • Current status code is set to OUT_OF_MEMORY and iterator returns NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and iterator returns NULL if:
    1. itr_traversal is not valid;
    2. general_traversal_pattern is not valid;

    3. selection_parameters are provided but are not valid;

    4. traversal order parameters are provided, but are not valid;

    5. a search filter is provided, but is not a valid, active (i.e., unfreed) search filter;

    6. a spatial search boundary is provided, but is not a legal, valid spatial search boundary for the scope of start_object; or

    7. the start_object, search filter, and/or spatial search boundary came from different transmittals.

Input parameters:

Parameter name

Parameter data type

start_object

Object

boundary Search_Boundary
filter Search_Filter
directly_attach_table_components  Boolean
process_inheritence Boolean
transform_locations Boolean
follow_model_instances Boolean
evaluate_static_control_links Boolean
select_parameters Hierarchy_Select_Parameters
traversal_order_parameters Hierarchy_Order_Parameters
general_traversal_pattern Traversal_Order
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

iterator

Iterator

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.60 InitializeInheritedComponentIterator

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:

  • Current status code is set to SUCCESS and iterator returns a newly created inherited component iterator if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and iterator is left unaltered if iterator is invalid.
  • Current status code is set to INVALID_OBJECT and iterator returns NULL if start_object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_START_OBJECT and iterator returns NULL if start_object is unresolved.
  • Current status code is set to OUT_OF_MEMORY and iterator returns NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and iterator returns NULL if:
    1. itr_traversal is not valid;
    2. a search filter is provided, but is not a valid, active (i.e., unfreed) search filter;

    3. the start_object and/or search filter came from different transmittals.

Input parameters:

Parameter name

Parameter data type

start_object

Object

filter Search_Filter
directly_attach_table_components Boolean
itr_traversal ITR_Behaviour

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

iterator

Iterator

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_START_OBJECT
OUT_OF_MEMORY
FAILURE

 

7.3.61 IsIteratorComplete

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:

  • Current status code is set to SUCCESS and no error description is provided. If the function was able to determine that specified iterator is empty, the value TRUE is returned; otherwise the value FALSE is returned.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INACTIONABLE_FAILURE and result is set to FALSE, if the function failed for any reason.

Input parameters:

Parameter name

Parameter data type

iterator

Iterator

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

result

Boolean

Success status codes:

SUCCESS

Failure status codes:

INACTIONABLE_FAILURE

 

7.3.62 ObjectIsPublished

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:

  • Current status code is set to SUCCESS and result is set appropriately if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and result is left unaltered if result is invalid.
  • Current status code is set to INVALID_OBJECT and result is set to FALSE if object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and result is set to FALSE if object is not a resolved object.
  • Current status code is set to FAILURE and result is set to FALSE if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

result

Boolean

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
FAILURE

 

7.3.63 ObjectIsResolved

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:

  • Current status code is set to SUCCESS and result is set to the result of the check if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and result is left unaltered if result is invalid.
  • Current status code is set to INVALID_OBJECT and result returns FALSE if object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to FAILURE and result is set to FALSE if the function fails for any other reason.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

result

Boolean

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
FAILURE

 

7.3.64 ObjectsAreSame

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:

  • Current status code is set to SUCCESS and result returns the result of the check if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and result is left unaltered if result is invalid.
  • Current status code is set to INVALID_OBJECT and result returns FALSE if either object1 or object2 is not a valid SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and result returns FALSE if object1 or object2 is not a currently resolved object.
  • Current status code is set to FAILURE and result returns FALSE if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object_1

Object

object_2 Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

result

Boolean

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
FAILURE

 

7.3.65 OpenTransmittalByLocation

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:

  • Current status code is set to SUCCESS and transmittal returns the transmittal handle if valid parameters were passed in and the name was the name of a valid file that was able to be opened as a SEDRIS transmittal.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and transmittal is left unaltered if transmittal is invalid.
  • Current status code is set to TRANSMITTAL_INACCESSIBLE and transmittal returns NULL if the location was not accessible.
  • Current status code is set to INVALID_ACCESS_MODE and transmittal returns NULL if the location was found but the security permissions of the underlying file system prohibit access to the file in the mode specified. This can occur if:
    1. the file was opened for read-only or update and the file did not exist, or
    2. the file location specified a non-local file and the API had no transport mechanism for accessing the remote file.
  • Current status code is set to UNSUPPORTED_FORMAT and transmittal returns NULL if the implementation_identifier parameter or the default file extension specified a format that is not supported by the SEDRIS implementation.
  • Current status code is set to OUT_OF_MEMORY and transmittal returns NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and transmittal returns NULL if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

location

URN

implementation_identifier String
access_mode Access_Mode

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
TRANSMITTAL_INACCESSIBLE
INVALID_ACCESS_MODE
UNSUPPORTED_FORMAT
OUT_OF_MEMORY
FAILURE

 

7.3.66 OpenTransmittalByName

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:

  • Current status code is set to SUCCESS and transmittal returns a handle to the newly opened transmittal if valid parameters were passed in and transmittal_name was a valid transmittal name that could be resolved and accessed.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and transmittal is left unaltered if transmittal is invalid.
  • Current status code is set to INVALID_TRANSMITTAL_NAME and transmittal returns NULL if transmittal_name did not specify a name that was valid according to the format of the SEDRIS namespace.
  • Current status code is set to UNRESOLVED_TRANSMITTAL and transmittal returns NULL if transmittal_name could not be resolved to a file location.
  • Current status code is set to TRANSMITTAL_INACCESSIBLE and transmittal out returns NULL if the transmittal location was not accessible.
  • Current status code is set to INVALID_ACCESS_MODE and transmittal returns NULL if:
    1. the resolved file location was found, but the security permissions of the underlying file system prohibited access to the file in the mode specified. This could occur if the access mode specified was create or update and the file was marked read-only, or if no access was permitted for the account running the application.
    2. if create or update mode was requested and the API implementation does not support the write capability.
  • Current status code is set to UNSUPPORTED_FORMAT and transmittal returns NULL if the resolved transmittal_name referenced a format that is not supported by the implementation(s) of the SEDRIS API linked to the application.
  • Current status code is set to OUT_OF_MEMORY and transmittal returns NULL if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and transmittal returns NULL if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

transmittal_name

URN

implementation_identifier String
access_mode Access_Mode

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL_NAME
UNRESOLVED_TRANSMITTAL
TRANSMITTAL_INACCESSIBLE
INVALID_ACCESS_MODE
UNSUPPORTED_FORMAT
OUT_OF_MEMORY
FAILURE

 

7.3.67 PublishObject

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:

  • Current status code is set to SUCCESS and object is successfully published if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and object is not published if label is an empty string.
  • Current status code is set to INVALID_OBJECT and object is not published if object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and object is not published if object is unresolved.
  • Current status code is set to INVALID_OBJECT_LABEL and object is not published if label does not adhere to the required conventions or is already in use.
  • Current status code is set to INVALID_ACCESS_MODE and object is not published if object belongs to a transmittal opened in read-only mode.
  • Current status code is set to FAILURE and object is not published if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

label String

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
INVALID_OBJECT_LABEL
INVALID_ACCESS_MODE
FAILURE

 

7.3.68 PutDataTableData

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:

  • Current status code is set to SUCCESS, the specified data is inserted into the transmittal and no error description is produced.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to UNRESOLVED_START_OBJECT and no changes are made,  if data_table was a handle to an unresolved object.
  • Current status code is set to DELETED_OBJECT and no changes are made, if data_table was a handle to an object that had been removed from its transmittal.
  • Current status code is set to INVALID_ACCESS_MODE and no changes are made, if the transmittal to which data_table belongs was opened in read only mode.
  • Current status code is set to INACTIONABLE_FAILURE and no changes are made, if the function failed for any other reason.

Input parameters:

Parameter name

Parameter data type

data_table

Object

extents Data_Table_Extents
element_count Integer_Unsigned
table_property_description_index  Integer_Unsigned[element_count]
data_count Integer_Unsigned

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

data_table_data_access

Data_Table_Data[data_count]

Success status codes:

SUCCESS

Failure status codes:

UNRESOLVED_START_OBJECT
DELETED_OBJECT
INVALID_ACCESS_MODE
INACTIONABLE_FAILURE

 

7.3.69 PutFields

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:

  • Current status code is set to SUCCESS and the fields of the given object are replaced with the given fields if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_ACCESS_MODE and existing_object is left unaltered if existing_object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and existing_object is left unaltered if existing_object is unresolved.
  • Current status code is set to INVALID_ACCESS_MODE and existing_object is left unaltered if existing_object belongs to a transmittal opened in read-only mode.
  • Current status code is set to OUT_OF_MEMORY and existing_object is left unaltered if sufficient memory for the new fields could not be allocated.
  • Current status code is set to FAILURE and existing_object is left unaltered if:
    1. the class of new_fields does not match the class of existing_object; or
    2. new_fields contained invalid field values for the DRM class of existing_object.

Input parameters:

Parameter name

Parameter data type

new_fields

DRM_Class_Fields

Input/output parameters:

Parameter name

Parameter data type

existing_object

Object

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
UNRESOLVED_OBJECT
INVALID_ACCESS_MODE
OUT_OF_MEMORY
FAILURE

 

7.3.70 PutImageData

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:

  • Current status code is set to SUCCESS and the texels of image are created as specified if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and image is unaffected if data is invalid.
  • Current status code is set to INVALID_OBJECT and image is unaffected if image has not yet been added to the transmittal.
  • Current status code is set to UNRESOLVED_OBJECT and image is unaffected if image is an unresolved object.
  • Current status code is set to INVALID_ACCESS_MODE and image is unaffected if image belongs to a transmittal that was opened in read-only mode.
  • Current status code is set to FAILURE and image is unaffected if any of the following conditions are encountered:
    1. image does not belong to an open transmittal;
    2. mip_level is out of range for the image’s level_count;
    3. the image’s mip_extents_array is invalid;
    4. the start and stop extents are out of range for the specified mip_level, or stop greater than start for any of the extents; or
    5. a partial image is specified.

Input parameters:

Parameter name

Parameter data type

start_texel_horizontal

Integer_Unsigned

start_texel_vertical Integer_Unsigned
start_texel_z Integer_Unsigned
stop_texel_horizontal Integer_Unsigned
stop_texel_vertical Integer_Unsigned
stop_texel_z Integer_Unsigned
mip_level Short_Integer_Unsigned
image_data Image_Data

Input/output parameters:

Parameter name

Parameter data type

image

Object

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
INVALID_ACCESS_MODE
FAILURE

 

7.3.71 RemoveAssociationRelationship

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:

  • Current status code is set to SUCCESS and the relationship is removed if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT and no changes are made, if:
    1. from_object is not a valid, saved SEDRIS object,
    2. to_object is not a valid, saved SEDRIS object, and/or
    3. link_object is provided, but is not a valid, saved SEDRIS object.
  • Current status code is set to UNRESOLVED_START_OBJECT and no changes are made if from_object is unresolved or link_object is provided but is unresolved.
  • Current status code is set to UNRESOLVED_OBJECT and no changes are made if remove_two_way has value TRUE and the DRM defines the relationship as bidirectional, but to_object is unresolved, so the relationship from to_object to from_object cannot be removed.
  • Current status code is set to INVALID_ACCESS_MODE and no changes are made, if:
    1. to_object is in a transmittal that is open in READ_ONLY mode;
    2. link_object was provided but is in a transmittal that is open in READ_ONLY mode; and/or
    3. to_object is resolved, has a relationship back to from_object and remove_two_way has value TRUE but to_object is in a transmittal that is open in READ_ONLY mode.
  • Current status code is set to FAILURE and no changes are made, if:
    1. from_object and to_object are not related by an association relationship; or
    2. link_object is provided, and it is not the link object for the relationship.

Input parameters:

Parameter name

Parameter data type

remove_two_way

Boolean

Input/output parameters:

Parameter name

Parameter data type

from_object

Object

to_object Object
link_object Object

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
UNRESOLVED_START_OBJECT
UNRESOLVED_OBJECT
INVALID_ACCESS_MODE
FAILURE

 

7.3.72 RemoveComponentRelationship

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:

  • Current status code is set to SUCCESS and the specified relationship is removed if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT and no changes are made, if:
    1. aggregate_object is not a valid, saved object belonging to a valid DRM class,
    2. component_object is not a valid, saved object belonging to a valid DRM class, or
    3. link_object is provided, but is not a valid, saved object belonging to a valid DRM class.
  • Current status code is set to UNRESOLVED_START_OBJECT and no changes are made if aggregate_object is unresolved or link_object is provided but is unresolved.
  • Current status code is set to UNRESOLVED_OBJECT and no changes are made if remove_two_way has value TRUE and the DRM defines the relationship as bidirectional, but component_object is unresolved, so the relationship from component_object to aggregate_object cannot be removed.
  • Current status code is set to INVALID_ACCESS_MODE and no changes are made, if:
    1. aggregate_object is in a transmittal that is open in READ_ONLY mode;
    2. link_object was provided but is in a transmittal that is open in READ_ONLY mode; and/or
    3. component_object is resolved, has a relationship back to aggregate_object but component_object is in a transmittal that is open in READ_ONLY mode.
  • Current status code is set to FAILURE and no changes are made, if:
    1. aggregate_object and component_object are not related by a component relationship; or
    2. link_object is provided, and it is not the link object for the relationship.

Input parameters:

Parameter name

Parameter data type

None

 

Input/output parameters:

Parameter name

Parameter data type

aggregate_object

Object

component_object Object
link_object Object

Output parameters:

Parameter name

Parameter data type

parameter_o

Data_Type_For_Parameter_o

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
UNRESOLVED_START_OBJECT
UNRESOLVED_OBJECT
INVALID_ACCESS_MODE
FAILURE

 

7.3.73 RemoveFromTransmittal

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:

  • Current status code is set to SUCCESS and if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT and no changes are made if old_object is not a valid, active (i.e., unfreed) saved object. That is, if old_object was never added to a transmittal, it cannot be removed from a transmittal.
  • Current status code is set to INVALID_TRANSMITTAL and no changes are made if transmittal is not a valid, active (i.e., not closed and not freed) transmittal.
  • Current status code is set to DIFFERENT_TRANSMITTAL and no changes are made if old_object is in a different transmittal than the transmittal specified.
  • Current status code is set to UNRESOLVED_START_OBJECT and no changes are made if old_object is unresolved or old_object was removed but the object it referenced in another transmittal was not.
  • Current status code is set to INVALID_ACCESS_MODE and no changes are made if transmittal was opened in read-only mode.
  • Current status code is set to FAILURE and no changes are made if: old_object has relationships to any existing objects.

Input parameters:

Parameter name

Parameter data type

old_object

Object

transmittal Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
INVALID_TRANSMITTAL
DIFFERENT_TRANSMITTAL
UNRESOLVED_START_OBJECT
INVALID_ACCESS_MODE
FAILURE

 

7.3.74 ResolveObject

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:

  • Current status code is set to SUCCESS and object becomes resolved if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_OBJECT and object is left unaltered if object is not a valid, active (i.e., not freed) SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and object is left unaltered if object passed in could not be resolved. This value indicates that the transmittal name was successfully resolved, but the transmittal did not contained the object label as a published object.
  • Current status code is set to UNRESOLVED_TRANSMITTAL and object is left unaltered if object could not be resolved. This value indicates that the transmittal name portion of the reference could not be resolved.
  • Current status code is set to FAILURE and object is left unaltered if any other error occurs.

Input parameters:

Parameter name

Parameter data type

object

Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
UNRESOLVED_OBJECT
|
UNRESOLVED_TRANSMITTAL
FAILURE

 

7.3.75 ResolveTransmittalName

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:

  • Current status code is set to SUCCESS and location returns the location associated with the transmittal if valid parameters were passed in and transmittal_name was successfully resolved.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and location is left unaltered if transmittal_name or location is invalid.
  • Current status code is set to INVALID_TRANSMITTAL_NAME and location is left unaltered if transmittal_name did not specify a name that was valid according to the format of the SEDRIS URN namespace.
  • Current status code is set to UNRESOLVED_TRANSMITTAL and location returns an empty URN if transmittal_name could not be resolved to a transmittal location.
  • Current status code is set to OUT_OF_MEMORY and location returns an empty URN if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and location returns an empty URN if this function fails for any other reason.

Input parameters:

Parameter name

Parameter data type

transmittal_name

String

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

location

URN

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL_NAME
UNRESOLVED_TRANSMITTAL
OUT_OF_MEMORY
FAILURE

 

7.3.76 SetColourModel

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:

  • Current status code is set to SUCCESS and the current colour model of this API is changed to the colour model specified by colour_model if colour_model is valid.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to FAILURE and the current colour model is not changed if colour_model is invalid.

Input parameters:

Parameter name

Parameter data type

colour_model

Colour_Model

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

FAILURE

 

7.3.77 SetFirstErrorMessage

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:

  • Current status code is set to SUCCESS and all actions succeeded.

Input parameters:

Parameter name

Parameter data type

message

String

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

None

 

7.3.78 SetGeneralCallback

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:

  • Current status code is set to SUCCESS and all actions succeeded.

Input parameters:

Parameter name

Parameter data type

user_defined_function

Status_Logger

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

None

 

7.3.79 SetGeneralCallbackForOneFunction

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:

  • Current status code is set to SUCCESS and the specified callback is set if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to FAILURE and no changes are made if function_to_catch is invalid.

Input parameters:

Parameter name

Parameter data type

user_defined_function

Status_Logger

function_to_catch Transmittal_API_Function

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

FAILURE

 

7.3.80 SetRootObject

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:

  • Current status code is set to SUCCESS and the previously set root object is returned in old_root_object (if requested), and new_root_object is set to be the new root object of transmittal, if valid parameters were passed in and all operations succeeded.— If the root object for the transmittal had not been previously set and the old root object had been requested, old_root_object will be set to NULL.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the output parameters are left unaltered if old_root_object is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and the output parameters are left unaltered if transmittal is not a handle to a valid, active (i.e., open) SEDRIS transmittal.
  • Current status code is set to INVALID_OBJECT and the output parameters are left unaltered if new_root_object is not a valid, active (i.e., unfreed) object.
  • Current status code is set to UNRESOLVED_OBJECT and the output parameters are left unaltered if new_root_object is not a resolved object.
  • Current status code is set to INVALID_ACCESS_MODE and the output parameters are left unaltered if transmittal was opened in read-only mode.
  • Current status code is set to DIFFERENT_TRANSMITTAL and the output parameters are left unaltered if new_root_object does not belong to the given transmittal.
  • Current status code is set to OUT_OF_MEMORY and the output parameters are left unaltered if sufficient memory could not be allocated.
  • Current status code is set to FAILURE and the output parameters are left unaltered if any other error occurs.

Input parameters:

Parameter name

Parameter data type

transmittal

Transmittal

new_root_object Object

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

old_root_object

Object

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
INVALID_OBJECT
UNRESOLVED_OBJECT
INVALID_ACCESS_MODE
DIFFERENT_TRANSMITTAL
OUT_OF_MEMORY
FAILURE

 

7.3.81 SetSecondErrorMessage

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:

  • Current status code is set to SUCCESS and all actions succeeded.

Input parameters:

Parameter name

Parameter data type

message

String

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

None

 

7.3.82 SetSpecificCallback

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:

  • Current status code is set to SUCCESS and the callback is set if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to FAILURE and no changes are made if function_to_catch or status_code_to_catch is invalid.

Input parameters:

Parameter name

Parameter data type

user_defined_function

Status_Logger

function_to_catch Transmittal_API_Function
status_code_to_catch Status_Code

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

FAILURE

 

7.3.83 SetSRFParameters

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:

  • Current status code is set to SUCCESS and the current retrieval SRF is set to the SRF specified by new_srf_parameters if valid parameters were passed in.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_ACCESS_MODE and the retrieval SRF is not changed, if the API implementation cannot allocate sufficient memory to hold a copy of the new_srf_parameters.
  • Current status code is set to FAILURE and the retrieval SRF is not changed if:
    1. new_srf_parameters failed to specify a legal SRF within SEDRIS; or
    2. the parameters for the specified SRF were not legal for that SRF.

Input parameters:

Parameter name

Parameter data type

new_srf_parameters

SRF_Parameters

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

OUT_OF_MEMORY
FAILURE

 

7.3.84 SetTransmittalName

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:

  • Current status code is set to SUCCESS and all actions succeeded if valid parameters were passed in and the transmittal name was successfully set..

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and the name of the transmittal is left unaltered, if new_transmittal_name is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and the name of the transmittal is left unaltered if transmittal is not a handle to a valid, active (i.e., open) SEDRIS transmittal.
  • Current status code is set to INVALID_TRANSMITTAL_NAME and the name of the transmittal is left unaltered if new_transmittal_name did not specify a name that was valid according to the formal SEDRIS namespace.
  • Current status code is set to INVALID_ACCESS_MODE and the name of the transmittal is left unaltered if transmittal was opened in read-only mode.
  • Current status code is set to FAILURE and the name of the transmittal is left unaltered if any implmenetation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

new_transmittal_name

String

Input/output parameters:

Parameter name

Parameter data type

transmittal

Transmittal

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
INVALID_TRANSMITTAL_NAME
INVALID_ACCESS_MODE
FAILURE

 

7.3.85 SetUserData

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:

  • Current status code is set to SUCCESS and user_data is stored with object, if valid parameters were passed in. Note that if user_data is empty, this has the effect of resetting the absence of user data.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_ACCESS_MODE and no changes are made if object is not a valid SEDRIS object.
  • Current status code is set to FAILURE and no changes are made, if any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

user_data

User_Data

Input/output parameters:

Parameter name

Parameter data type

object

Object

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_OBJECT
FAILURE

 

7.3.86 TransmittalsAreSame

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:

  • Current status code is set to SUCCESS and result returns the result of the evaluation if valid parameters were passed in and the transmittals both referenced valid, open transmittals.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and result is left unaltered if result is invalid.
  • Current status code is set to INVALID_TRANSMITTAL and result returns FALSE if either of the transmittal parameters is not a handle to a valid, open SEDRIS transmittal.
  • Current status code is set to FAILURE and result returns FALSE if any impllemenation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

transmittal_a

Transmittal

transmittal_b Transmittal

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

result

Boolean

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_TRANSMITTAL
FAILURE

 

7.3.87 UnpublishObject

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:

  • Current status code is set to SUCCESS and object is unpublished if valid parameters were passed in and all operations succeeded.

As this function completes in error, one of the following actions occurs:

  • Current status code is set to INVALID_REQUIRED_PARAMETER and object is left unaltered if label is invalid.
  • Current status code is set to INVALID_OBJECT and object is left unaltered if object is not a valid, active (i.e., unfreed) SEDRIS object.
  • Current status code is set to UNRESOLVED_OBJECT and object is left unaltered if object is unresolved.
  • Current status code is set to UNPUBLISHED_OBJECT and object is left unaltered If object was not published under the specified label.
  • Current status code is set to INVALID_ACCESS_MODE and object is left unaltered if object belongs to a transmittal opened in read-only mode.
  • Current status code is set to FAILURE and object is left unaltered any implementation-specific error occurs.

Input parameters:

Parameter name

Parameter data type

label

String

Input/output parameters:

Parameter name

Parameter data type

object

Object

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

INVALID_REQUIRED_PARAMETER
INVALID_OBJECT
UNRESOLVED_OBJECT
UNPUBLISHED_OBJECT
INVALID_ACCESS_MODE
FAILURE

 

7.3.88 UseDefaultColourModel

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:

  • Current status code is set to SUCCESS and all actions succeeded.

Input parameters:

Parameter name

Parameter data type

None

 

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

None

 

7.3.89 UseDefaultSRFParameters

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:

  • Current status code is set to SUCCESS and all actions succeeded.

Input parameters:

Parameter name

Parameter data type

None

 

Input/output parameters:

Parameter name

Parameter data type

None

 

Output parameters:

Parameter name

Parameter data type

None

 

Success status codes:

SUCCESS

Failure status codes:

None