Commit 16875bdd authored by Maxime Perrotin's avatar Maxime Perrotin

Add more complex types that work with V4 (not V3)

parent 3df1897a
......@@ -110,18 +110,28 @@ myStrVar ConfigString ::= "This is a test"
FixedLenConfigString ::= IA5String (SIZE (5))
myStrFixed FixedLenConfigString ::= "Hello"
-- The following commented parts crash DMT and ASN1SCCV3 but work with V4.
-- !!! UNCOMMENT THEM WHEN V4 IS USED IN TASTE !!!
T-TypeThatMustNotBeMappedExceptInPython ::= SEQUENCE {
config ConfigString,
param INTEGER (0..10)
-- fixstr FixedLenConfigString DEFAULT "Hello"
param INTEGER (0..10),
fixstr FixedLenConfigString DEFAULT "Hello"
}
-- TypeWithOptional ::= SEQUENCE {
-- a BOOLEAN OPTIONAL,
-- b INTEGER (0..255|1299)(5),
-- c INTEGER (0..255)
-- }
-- SubTypeWithOptional ::= TypeWithOptional (WITH COMPONENTS {a ABSENT, c (42), b (1299)})
E ::= INTEGER (0..255|1299)(5)
TypeWithOptional ::= SEQUENCE {
a BOOLEAN OPTIONAL,
b INTEGER (0..255|1299),
c INTEGER (0..255)
}
SubTypeWithOptional ::= TypeWithOptional (WITH COMPONENTS {a ABSENT, c (42), b (1299)})
SuperChoice ::= CHOICE {
first-choice BOOLEAN,
second-choice INTEGER (0..255),
third-choice TypeWithOptional
}
-- Choice items can be removed in subtypes
SuperRestrictedChoice ::= SuperChoice (WITH COMPONENTS {second-choice ABSENT})
END
Markdown is supported
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