Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a choiceId for CHOICE #12

Open
lamplet opened this issue Jun 8, 2018 · 1 comment
Open

Add a choiceId for CHOICE #12

lamplet opened this issue Jun 8, 2018 · 1 comment

Comments

@lamplet
Copy link

lamplet commented Jun 8, 2018

When i compile an asn.1 like this:
PDU ::= CHOICE { a A, b B }

i want a choiceId in the generated class, so that i can process it with switch/case. And constants CHOICE_ID_A, CHOICE_ID_B like this:

public class PDU implements Serializable
{
    public static final int CHOICE_ID_A = 0;

    public static final int CHOICE_ID_B = 1;

    private int choiceId;

    private A a = null;

    private B b = null;
}
@sfeuerhahn
Copy link
Contributor

I'll put that on my todo list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants