UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

131 lines (130 loc) 4.74 kB
import { OPTIONAL, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; import { Transfer_syntax_name } from '../ISO8823-PRESENTATION/Transfer-syntax-name.ta'; export { Transfer_syntax_name, _decode_Transfer_syntax_name, _encode_Transfer_syntax_name, } from '../ISO8823-PRESENTATION/Transfer-syntax-name.ta'; import { Presentation_context_identifier } from '../ISO8823-PRESENTATION/Presentation-context-identifier.ta'; export { Presentation_context_identifier, _decode_Presentation_context_identifier, _encode_Presentation_context_identifier, } from '../ISO8823-PRESENTATION/Presentation-context-identifier.ta'; import { PDV_list_presentation_data_values } from '../ISO8823-PRESENTATION/PDV-list-presentation-data-values.ta'; export { PDV_list_presentation_data_values, _decode_PDV_list_presentation_data_values, _encode_PDV_list_presentation_data_values, } from '../ISO8823-PRESENTATION/PDV-list-presentation-data-values.ta'; /** * @summary PDV_list * @description * * ### ASN.1 Definition: * * ```asn1 * PDV-list ::= SEQUENCE { * transfer-syntax-name Transfer-syntax-name OPTIONAL, * presentation-context-identifier Presentation-context-identifier, * presentation-data-values * CHOICE {single-ASN1-type * [0] ABSTRACT-SYNTAX.&Type * (CONSTRAINED BY { * * -- Type corresponding to presentation context identifier -- }), * octet-aligned [1] IMPLICIT OCTET STRING, * arbitrary [2] IMPLICIT BIT STRING} * -- Contains one or more presentation data values from the same * -- presentation context. * -- See 8.4.2. * } * ``` * * @class */ export declare class PDV_list { /** * @summary `transfer_syntax_name`. * @public * @readonly */ readonly transfer_syntax_name: OPTIONAL<Transfer_syntax_name>; /** * @summary `presentation_context_identifier`. * @public * @readonly */ readonly presentation_context_identifier: Presentation_context_identifier; /** * @summary `presentation_data_values`. * @public * @readonly */ readonly presentation_data_values: PDV_list_presentation_data_values; constructor( /** * @summary `transfer_syntax_name`. * @public * @readonly */ transfer_syntax_name: OPTIONAL<Transfer_syntax_name>, /** * @summary `presentation_context_identifier`. * @public * @readonly */ presentation_context_identifier: Presentation_context_identifier, /** * @summary `presentation_data_values`. * @public * @readonly */ presentation_data_values: PDV_list_presentation_data_values); /** * @summary Restructures an object into a PDV_list * @description * * This takes an `object` and converts it to a `PDV_list`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `PDV_list`. * @returns {PDV_list} */ static _from_object(_o: { [_K in keyof PDV_list]: PDV_list[_K]; }): PDV_list; } /** * @summary The Leading Root Component Types of PDV_list * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_PDV_list: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of PDV_list * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_PDV_list: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of PDV_list * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_PDV_list: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) PDV_list * @function * @param {_Element} el The element being decoded. * @returns {PDV_list} The decoded data structure. */ export declare function _decode_PDV_list(el: _Element): PDV_list; /** * @summary Encodes a(n) PDV_list into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The PDV_list, encoded as an ASN.1 Element. */ export declare function _encode_PDV_list(value: PDV_list, elGetter: $.ASN1Encoder<PDV_list>): _Element;