/* * Generated by asn1c * From ASN.1 module "GDD" * found in "ISO14823.asn" * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` */ #include "InternationalSign-applicablePeriod.h" static int memb_yearRangeStartYear_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value >= 2000L && value <= 2127L)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_yearRangeEndYear_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value >= 2000L && value <= 2127L)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } #if !defined(ASN_DISABLE_OER_SUPPORT) static asn_oer_constraints_t asn_OER_memb_yearRangeStartYear_constr_3 CC_NOTUSED = { { 0, 0 }, -1}; #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_yearRangeStartYear_constr_3 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 2000, 2127 } /* (2000..2127,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) static asn_oer_constraints_t asn_OER_memb_yearRangeEndYear_constr_4 CC_NOTUSED = { { 0, 0 }, -1}; #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_yearRangeEndYear_constr_4 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 2000, 2127 } /* (2000..2127,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static asn_TYPE_member_t asn_MBR_year_2[] = { { ATF_NOFLAGS, 0, offsetof(struct InternationalSign_applicablePeriod__year, yearRangeStartYear), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) &asn_OER_memb_yearRangeStartYear_constr_3, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_yearRangeStartYear_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_yearRangeStartYear_constraint_2 }, 0, 0, /* No default value */ "yearRangeStartYear" }, { ATF_NOFLAGS, 0, offsetof(struct InternationalSign_applicablePeriod__year, yearRangeEndYear), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) &asn_OER_memb_yearRangeEndYear_constr_4, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_yearRangeEndYear_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_yearRangeEndYear_constraint_2 }, 0, 0, /* No default value */ "yearRangeEndYear" }, }; static const ber_tlv_tag_t asn_DEF_year_tags_2[] = { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_year_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* yearRangeStartYear */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* yearRangeEndYear */ }; static asn_SEQUENCE_specifics_t asn_SPC_year_specs_2 = { sizeof(struct InternationalSign_applicablePeriod__year), offsetof(struct InternationalSign_applicablePeriod__year, _asn_ctx), asn_MAP_year_tag2el_2, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ asn_TYPE_descriptor_t asn_DEF_year_2 = { "year", "year", &asn_OP_SEQUENCE, asn_DEF_year_tags_2, sizeof(asn_DEF_year_tags_2) /sizeof(asn_DEF_year_tags_2[0]) - 1, /* 1 */ asn_DEF_year_tags_2, /* Same as above */ sizeof(asn_DEF_year_tags_2) /sizeof(asn_DEF_year_tags_2[0]), /* 2 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_year_2, 2, /* Elements count */ &asn_SPC_year_specs_2 /* Additional specs */ }; static asn_TYPE_member_t asn_MBR_month_day_5[] = { { ATF_NOFLAGS, 0, offsetof(struct InternationalSign_applicablePeriod__month_day, dateRangeStartMonthDay), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_MonthDay, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "dateRangeStartMonthDay" }, { ATF_NOFLAGS, 0, offsetof(struct InternationalSign_applicablePeriod__month_day, dateRangeEndMonthDay), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_MonthDay, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "dateRangeEndMonthDay" }, }; static const ber_tlv_tag_t asn_DEF_month_day_tags_5[] = { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_month_day_tag2el_5[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dateRangeStartMonthDay */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dateRangeEndMonthDay */ }; static asn_SEQUENCE_specifics_t asn_SPC_month_day_specs_5 = { sizeof(struct InternationalSign_applicablePeriod__month_day), offsetof(struct InternationalSign_applicablePeriod__month_day, _asn_ctx), asn_MAP_month_day_tag2el_5, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ asn_TYPE_descriptor_t asn_DEF_month_day_5 = { "month-day", "month-day", &asn_OP_SEQUENCE, asn_DEF_month_day_tags_5, sizeof(asn_DEF_month_day_tags_5) /sizeof(asn_DEF_month_day_tags_5[0]) - 1, /* 1 */ asn_DEF_month_day_tags_5, /* Same as above */ sizeof(asn_DEF_month_day_tags_5) /sizeof(asn_DEF_month_day_tags_5[0]), /* 2 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_month_day_5, 2, /* Elements count */ &asn_SPC_month_day_specs_5 /* Additional specs */ }; static asn_TYPE_member_t asn_MBR_hourMinutes_9[] = { { ATF_NOFLAGS, 0, offsetof(struct InternationalSign_applicablePeriod__hourMinutes, timeRangeStartTime), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_HoursMinutes, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "timeRangeStartTime" }, { ATF_NOFLAGS, 0, offsetof(struct InternationalSign_applicablePeriod__hourMinutes, timeRangeEndTime), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_HoursMinutes, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "timeRangeEndTime" }, }; static const ber_tlv_tag_t asn_DEF_hourMinutes_tags_9[] = { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_hourMinutes_tag2el_9[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timeRangeStartTime */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* timeRangeEndTime */ }; static asn_SEQUENCE_specifics_t asn_SPC_hourMinutes_specs_9 = { sizeof(struct InternationalSign_applicablePeriod__hourMinutes), offsetof(struct InternationalSign_applicablePeriod__hourMinutes, _asn_ctx), asn_MAP_hourMinutes_tag2el_9, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ asn_TYPE_descriptor_t asn_DEF_hourMinutes_9 = { "hourMinutes", "hourMinutes", &asn_OP_SEQUENCE, asn_DEF_hourMinutes_tags_9, sizeof(asn_DEF_hourMinutes_tags_9) /sizeof(asn_DEF_hourMinutes_tags_9[0]) - 1, /* 1 */ asn_DEF_hourMinutes_tags_9, /* Same as above */ sizeof(asn_DEF_hourMinutes_tags_9) /sizeof(asn_DEF_hourMinutes_tags_9[0]), /* 2 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_hourMinutes_9, 2, /* Elements count */ &asn_SPC_hourMinutes_specs_9 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_InternationalSign_applicablePeriod_1[] = { { ATF_POINTER, 6, offsetof(struct InternationalSign_applicablePeriod, year), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_year_2, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "year" }, { ATF_POINTER, 5, offsetof(struct InternationalSign_applicablePeriod, month_day), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, &asn_DEF_month_day_5, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "month-day" }, { ATF_POINTER, 4, offsetof(struct InternationalSign_applicablePeriod, repeatingPeriodDayTypes), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RepeatingPeriodDayTypes, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "repeatingPeriodDayTypes" }, { ATF_POINTER, 3, offsetof(struct InternationalSign_applicablePeriod, hourMinutes), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, &asn_DEF_hourMinutes_9, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "hourMinutes" }, { ATF_POINTER, 2, offsetof(struct InternationalSign_applicablePeriod, dateRangeOfWeek), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DayOfWeek, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "dateRangeOfWeek" }, { ATF_POINTER, 1, offsetof(struct InternationalSign_applicablePeriod, durationHourMinute), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_HoursMinutes, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "durationHourMinute" }, }; static const int asn_MAP_InternationalSign_applicablePeriod_oms_1[] = { 0, 1, 2, 3, 4, 5 }; static const ber_tlv_tag_t asn_DEF_InternationalSign_applicablePeriod_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_InternationalSign_applicablePeriod_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* year */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* month-day */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repeatingPeriodDayTypes */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* hourMinutes */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dateRangeOfWeek */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* durationHourMinute */ }; asn_SEQUENCE_specifics_t asn_SPC_InternationalSign_applicablePeriod_specs_1 = { sizeof(struct InternationalSign_applicablePeriod), offsetof(struct InternationalSign_applicablePeriod, _asn_ctx), asn_MAP_InternationalSign_applicablePeriod_tag2el_1, 6, /* Count of tags in the map */ asn_MAP_InternationalSign_applicablePeriod_oms_1, /* Optional members */ 6, 0, /* Root/Additions */ -1, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_InternationalSign_applicablePeriod = { "InternationalSign-applicablePeriod", "InternationalSign-applicablePeriod", &asn_OP_SEQUENCE, asn_DEF_InternationalSign_applicablePeriod_tags_1, sizeof(asn_DEF_InternationalSign_applicablePeriod_tags_1) /sizeof(asn_DEF_InternationalSign_applicablePeriod_tags_1[0]), /* 1 */ asn_DEF_InternationalSign_applicablePeriod_tags_1, /* Same as above */ sizeof(asn_DEF_InternationalSign_applicablePeriod_tags_1) /sizeof(asn_DEF_InternationalSign_applicablePeriod_tags_1[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_InternationalSign_applicablePeriod_1, 6, /* Elements count */ &asn_SPC_InternationalSign_applicablePeriod_specs_1 /* Additional specs */ };