308 lines · 8.8 KB · C#
RawDownload
//// This file was generated by the BinaryNotes compiler.// See http://bnotes.sourceforge.net // Any modifications to this file will be lost upon recompilation of the source ASN.1. // using System.Runtime.CompilerServices;using System.Collections.Generic;using GSF.ASN1;using GSF.ASN1.Attributes;using GSF.ASN1.Coders;using GSF.ASN1.Types; namespace GSF.MMS.Model{        [ASN1PreparedElement]    [ASN1Sequence(Name = "Semaphore_instance", IsSet = false)]    public class Semaphore_instance : IASN1PreparedElement    {        private static readonly IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(Semaphore_instance));        private DefinitionChoiceType definition_;        private Identifier name_;         [ASN1Element(Name = "name", IsOptional = false, HasTag = true, Tag = 0, HasDefaultValue = false)]        public Identifier Name        {            get            {                return name_;            }            set            {                name_ = value;            }        }          [ASN1Element(Name = "definition", IsOptional = false, HasTag = false, HasDefaultValue = false)]        public DefinitionChoiceType Definition        {            get            {                return definition_;            }            set            {                definition_ = value;            }        }          public void initWithDefaults()        {        }          public IASN1PreparedElementData PreparedData        {            get            {                return preparedData;            }        }         [ASN1PreparedElement]        [ASN1Choice(Name = "definition")]        public class DefinitionChoiceType : IASN1PreparedElement        {            private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(DefinitionChoiceType));            private DetailsSequenceType details_;            private bool details_selected;            private ObjectIdentifier reference_;            private bool reference_selected;              [ASN1ObjectIdentifier(Name = "")]            [ASN1Element(Name = "reference", IsOptional = false, HasTag = true, Tag = 1, HasDefaultValue = false)]            public ObjectIdentifier Reference            {                get                {                    return reference_;                }                set                {                    selectReference(value);                }            }              [ASN1Element(Name = "details", IsOptional = false, HasTag = true, Tag = 2, HasDefaultValue = false)]            public DetailsSequenceType Details            {                get                {                    return details_;                }                set                {                    selectDetails(value);                }            }             public void initWithDefaults()            {            }             public IASN1PreparedElementData PreparedData            {                get                {                    return preparedData;                }            }              public bool isReferenceSelected()            {                return reference_selected;            }              public void selectReference(ObjectIdentifier val)            {                reference_ = val;                reference_selected = true;                  details_selected = false;            }              public bool isDetailsSelected()            {                return details_selected;            }              public void selectDetails(DetailsSequenceType val)            {                details_ = val;                details_selected = true;                  reference_selected = false;            }             [ASN1PreparedElement]            [ASN1Sequence(Name = "details", IsSet = false)]            public class DetailsSequenceType : IASN1PreparedElement            {                private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(DetailsSequenceType));                private Access_Control_List_instance accessControl_;                  private ClassEnumType class__;                private Event_Condition_instance eventCondition_;                private ICollection<string> namedTokens_;                 private bool namedTokens_present;                  private long numberOfTokens_;                 private bool numberOfTokens_present;                 [ASN1Element(Name = "accessControl", IsOptional = false, HasTag = true, Tag = 3, HasDefaultValue = false)]                public Access_Control_List_instance AccessControl                {                    get                    {                        return accessControl_;                    }                    set                    {                        accessControl_ = value;                    }                }                 [ASN1Element(Name = "class", IsOptional = false, HasTag = true, Tag = 4, HasDefaultValue = false)]                public ClassEnumType Class_                {                    get                    {                        return class__;                    }                    set                    {                        class__ = value;                    }                }                 [ASN1Integer(Name = "")]                [ASN1Element(Name = "numberOfTokens", IsOptional = true, HasTag = true, Tag = 5, HasDefaultValue = false)]                public long NumberOfTokens                {                    get                    {                        return numberOfTokens_;                    }                    set                    {                        numberOfTokens_ = value;                        numberOfTokens_present = true;                    }                }                  [ASN1String(Name = "",                    StringType = UniversalTags.VisibleString, IsUCS = false)]                [ASN1SequenceOf(Name = "namedTokens", IsSetOf = false)]                [ASN1Element(Name = "namedTokens", IsOptional = true, HasTag = true, Tag = 6, HasDefaultValue = false)]                public ICollection<string> NamedTokens                {                    get                    {                        return namedTokens_;                    }                    set                    {                        namedTokens_ = value;                        namedTokens_present = true;                    }                }                  [ASN1Element(Name = "eventCondition", IsOptional = false, HasTag = true, Tag = 7, HasDefaultValue = false)]                public Event_Condition_instance EventCondition                {                    get                    {                        return eventCondition_;                    }                    set                    {                        eventCondition_ = value;                    }                }                  public void initWithDefaults()                {                }                 public IASN1PreparedElementData PreparedData                {                    get                    {                        return preparedData;                    }                }                 public bool isNumberOfTokensPresent()                {                    return numberOfTokens_present;                }                 public bool isNamedTokensPresent()                {                    return namedTokens_present;                }                 [ASN1PreparedElement]                [ASN1Enum(Name = "ClassEnumType")]                public class ClassEnumType : IASN1PreparedElement                {                    public enum EnumType                    {                        [ASN1EnumItem(Name = "token", HasTag = true, Tag = 0)]                        token,                        [ASN1EnumItem(Name = "pool", HasTag = true, Tag = 1)]                        pool,                    }                     private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(typeof(ClassEnumType));                     private EnumType val;                     public EnumType Value                    {                        get                        {                            return val;                        }                        set                        {                            val = value;                        }                    }                     public void initWithDefaults()                    {                    }                      public IASN1PreparedElementData PreparedData                    {                        get                        {                            return preparedData;                        }                    }                }            }        }    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t