Commit 5d290dcc authored by Yann Garcia's avatar Yann Garcia
Browse files

Add GDD ASN.1 module in libasn1c

parent b118b2e6
...@@ -54,16 +54,16 @@ InternationalSign-applicablePeriod::= SEQUENCE { ...@@ -54,16 +54,16 @@ InternationalSign-applicablePeriod::= SEQUENCE {
yearRangeEndYear INTEGER(2000..2127,...) yearRangeEndYear INTEGER(2000..2127,...)
} OPTIONAL, } OPTIONAL,
month-day SEQUENCE { -- contains dateRangeStartMonth&Date and dateRangeEndMonth&Date month-day SEQUENCE { -- contains dateRangeStartMonth&Date and dateRangeEndMonth&Date
dateRangeStartMonthDay MonthDay, dateRangeStartGDD-MonthDay GDD-MonthDay,
dateRangeEndMonthDay MonthDay dateRangeEndGDD-MonthDay GDD-MonthDay
} OPTIONAL, } OPTIONAL,
repeatingPeriodDayTypes RepeatingPeriodDayTypes OPTIONAL, repeatingPeriodDayTypes RepeatingPeriodDayTypes OPTIONAL,
hourMinutes SEQUENCE { -- contains timeRangeStartTime and timeRangeEndTime hourMinutes SEQUENCE { -- contains timeRangeStartTime and timeRangeEndTime
timeRangeStartTime HoursMinutes, timeRangeStartTime GDD-HoursMinutes,
timeRangeEndTime HoursMinutes timeRangeEndTime GDD-HoursMinutes
} OPTIONAL, } OPTIONAL,
dateRangeOfWeek DayOfWeek OPTIONAL, dateRangeOfWeek GDD-DayOfWeek OPTIONAL,
durationHourMinute HoursMinutes OPTIONAL durationHourMinute GDD-HoursMinutes OPTIONAL
} }
InternationalSign-exemptedApplicablePeriod::= InternationalSign-applicablePeriod InternationalSign-exemptedApplicablePeriod::= InternationalSign-applicablePeriod
...@@ -80,10 +80,10 @@ InternationalSign-directionalFlowOfLane::= INTEGER { ...@@ -80,10 +80,10 @@ InternationalSign-directionalFlowOfLane::= INTEGER {
} (1..8) } (1..8)
InternationalSign-applicableVehicleDimensions::= SEQUENCE{ InternationalSign-applicableVehicleDimensions::= SEQUENCE{
vehicleHeight Distance OPTIONAL, vehicleHeight GDD-Distance OPTIONAL,
vehicleWidth Distance OPTIONAL, vehicleWidth GDD-Distance OPTIONAL,
vehicleLength Distance OPTIONAL, vehicleLength GDD-Distance OPTIONAL,
vehicleWeight Weight OPTIONAL vehicleGDD-Weight GDD-Weight OPTIONAL
} }
InternationalSign-speedLimits::= SEQUENCE{ InternationalSign-speedLimits::= SEQUENCE{
...@@ -94,18 +94,18 @@ InternationalSign-speedLimits::= SEQUENCE{ ...@@ -94,18 +94,18 @@ InternationalSign-speedLimits::= SEQUENCE{
InternationalSign-rateOfIncline::= INTEGER(1..32) InternationalSign-rateOfIncline::= INTEGER(1..32)
InternationalSign-distanceBetweenVehicles::= Distance InternationalSign-distanceBetweenVehicles::= GDD-Distance
InternationalSign-destinationInformation::= SEQUENCE{ InternationalSign-destinationInformation::= SEQUENCE{
junctionDirection INTEGER(1..128) OPTIONAL, junctionDirection INTEGER(1..128) OPTIONAL,
roundaboutCwDirection INTEGER(1..128)OPTIONAL, roundaboutCwDirection INTEGER(1..128)OPTIONAL,
roundaboutCcwDirection INTEGER(1..128)OPTIONAL, roundaboutCcwDirection INTEGER(1..128)OPTIONAL,
ioList DDD-IO-LIST ioList GDD-DDD-IO-LIST
} }
InternationalSign-section::= SEQUENCE{ InternationalSign-section::= SEQUENCE{
startingPointLength Distance OPTIONAL, startingPointLength GDD-Distance OPTIONAL,
continuityLength Distance OPTIONAL continuityLength GDD-Distance OPTIONAL
} }
InternationalSign-numberOfLane::= INTEGER(0..99) InternationalSign-numberOfLane::= INTEGER(0..99)
...@@ -131,22 +131,22 @@ Code-Units::= INTEGER { ...@@ -131,22 +131,22 @@ Code-Units::= INTEGER {
-- value 15 reserved for future use -- value 15 reserved for future use
} (0..15) } (0..15)
DayOfWeek::= BIT STRING {unused(0), monday(1), tuesday(2), wednesday(3), thursday(4), friday(5), saturday(6), sunday(7)} (SIZE (8)) GDD-DayOfWeek::= BIT STRING {unused(0), monday(1), tuesday(2), wednesday(3), thursday(4), friday(5), saturday(6), sunday(7)} (SIZE (8))
DDD-IO-LIST ::= SEQUENCE (SIZE (1..8,...)) OF DDD-IO GDD-DDD-IO-LIST ::= SEQUENCE (SIZE (1..8,...)) OF GDD-DDD-IO
DDD-IO::= SEQUENCE{ GDD-DDD-IO::= SEQUENCE{
arrowDirection INTEGER(0..7), arrowDirection INTEGER(0..7),
destPlace DestinationPlaces OPTIONAL, destPlace GDD-DestinationPlaces OPTIONAL,
destRoad DestinationRoads OPTIONAL, destRoad GDD-DestinationRoads OPTIONAL,
roadNumberIdentifier INTEGER(1..999) OPTIONAL, roadNumberIdentifier INTEGER(1..999) OPTIONAL,
streetName INTEGER(1..999) OPTIONAL, streetName INTEGER(1..999) OPTIONAL,
streetNameText UTF8String OPTIONAL, streetNameText UTF8String OPTIONAL,
distanceToDivergingPoint DistanceOrDuration OPTIONAL, distanceToDivergingPoint GDD-DistanceOrDuration OPTIONAL,
distanceToDestinationPlace DistanceOrDuration OPTIONAL distanceToGDD-DestinationPlace GDD-DistanceOrDuration OPTIONAL
} }
DestinationPlace::= SEQUENCE{ GDD-DestinationPlace::= SEQUENCE{
destType DestinationType, destType DestinationType,
destRSCode GddStructure (WITH COMPONENTS {..., attributes ABSENT}) OPTIONAL, destRSCode GddStructure (WITH COMPONENTS {..., attributes ABSENT}) OPTIONAL,
destBlob OCTET STRING OPTIONAL, destBlob OCTET STRING OPTIONAL,
...@@ -154,17 +154,17 @@ DestinationPlace::= SEQUENCE{ ...@@ -154,17 +154,17 @@ DestinationPlace::= SEQUENCE{
placeNameText UTF8String OPTIONAL placeNameText UTF8String OPTIONAL
} }
DestinationPlaces ::= SEQUENCE (SIZE (1..4,...)) OF DestinationPlace GDD-DestinationPlaces ::= SEQUENCE (SIZE (1..4,...)) OF GDD-DestinationPlace
DestinationRoad::= SEQUENCE{ GDD-DestinationRoad::= SEQUENCE{
derType DestinationRoadType, derType GDD-DestinationRoadType,
roadNumberIdentifier INTEGER(1..999) OPTIONAL, roadNumberIdentifier INTEGER(1..999) OPTIONAL,
roadNumberText UTF8String OPTIONAL roadNumberText UTF8String OPTIONAL
} }
DestinationRoads ::= SEQUENCE (SIZE (1..4,...)) OF DestinationRoad GDD-DestinationRoads ::= SEQUENCE (SIZE (1..4,...)) OF GDD-DestinationRoad
DestinationRoadType::= INTEGER { GDD-DestinationRoadType::= INTEGER {
none (0), none (0),
nationalHighway (1), nationalHighway (1),
localHighway (2), localHighway (2),
...@@ -202,29 +202,29 @@ DestinationType::= INTEGER { ...@@ -202,29 +202,29 @@ DestinationType::= INTEGER {
geographicArea (15) geographicArea (15)
} (0..15, ...) } (0..15, ...)
Distance::= SEQUENCE{ GDD-Distance::= SEQUENCE{
value INTEGER(1..16384), value INTEGER(1..16384),
unit Code-Units(2..4|6..8) unit Code-Units(2..4|6..8)
} }
DistanceOrDuration::= SEQUENCE { GDD-DistanceOrDuration::= SEQUENCE {
value INTEGER(1..16384), value INTEGER(1..16384),
unit Code-Units (2..9) unit Code-Units (2..9)
} }
HoursMinutes::= SEQUENCE { GDD-HoursMinutes::= SEQUENCE {
hours INTEGER (0..23),-- number of hours after midnight hours INTEGER (0..23),-- number of hours after midnight
mins INTEGER (0..59) -- number of minutes after the hour mins INTEGER (0..59) -- number of minutes after the hour
} }
MonthDay::= SEQUENCE { GDD-MonthDay::= SEQUENCE {
month INTEGER (1..12), month INTEGER (1..12),
day INTEGER (1..31) day INTEGER (1..31)
} }
RepeatingPeriodDayTypes::= BIT STRING {national-holiday (0), even-days(1), odd-days(2), market-day(3) } (SIZE (4)) RepeatingPeriodDayTypes::= BIT STRING {national-holiday (0), even-days(1), odd-days(2), market-day(3) } (SIZE (4))
Weight::= SEQUENCE { GDD-Weight::= SEQUENCE {
value INTEGER(1..16384), value INTEGER(1..16384),
unit Code-Units (10..12) unit Code-Units (10..12)
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment