The SEDRIS Data Representation Model
APPENDIX D - Functions
SE GeneralGetAggregateOfType
extern SE_DRM_Status_Code
SE_GeneralGetAggregateOfType
(
SE_Short_Integer_Positive  major_drm_version,1
SE_Byte_Unsigned  minor_drm_version,2
SE_Short_Integer_Positive  drm_class_a,3
SE_Short_Integer_Positive  drm_class_b,4
const SE_Requirement  **req_out_ptr5
);

Definition

If drm_class_a has an aggregate requirement for drm_class_b, returns the specified requirement.

That is, if an object of DRM class A can be aggregated by an object of DRM class B via a bidirectional aggregation, the SE_Requirement that specifies the details of the relationship is retrieved.


Returns

SE_DRM_STAT_CODE_SUCCESS and *req_out_ptr is set appropriately, if if valid parameters were passed in.
SE_DRM_STAT_CODE_NULL_REQUIRED_PARAMETER and *req_out_ptr is left unchanged, if req_out_ptr is NULL.
SE_DRM_STAT_CODE_INVALID_VERSION and *req_out_ptr is set to NULL, if the specified version of the DRM is not supported.
SE_DRM_STAT_CODE_INVALID_CLASS and *req_out_ptr is set to NULL, if drm_class_a or drm_class_b does not correspond to a valid DRM class in the specified DRM version.
SE_DRM_STAT_CODE_FAILURE and *req_out_ptr is set to NULL, if 'drm_class_a' has no aggregates of type 'drm_class_b' in the specified DRM version.

Parameters Notes

1 major DRM version number of the DRM version for which this function is being called

2 minor DRM version number of the DRM version for which this function is being called

3 represents the DRM class whose aggregate requirement is being requested in the specified DRM version.

4 represents requested aggregate DRM class in the specified DRM version.

5 pointer to a linked list of SE_Requirements


Prev: SE_GeneralFieldIndexForClass. Next: SE_GeneralGetAssociateOfType. Up:Index.