Pricing      Download   
MENU 
 Home Products About Support Contact



SimpleAsn1Example.asn1

( ASN.1 Examples | Home )

-- ======================================================================== --
-- =     Copyright (c) 1997-2004, Monfox, LLC.  ALL RIGHTS RESERVED       = --
-- ======================================================================== --
-- =                                                                      = --
-- = ASN.1 definitions used in the ASN.1 code examples. Not used directly = --
-- = with the "Simple Example" GDMO definitions                           = --
-- =                                                                      = --
-- ======================================================================== --


SimpleAsn1Example-ASN1Module { 1 3 6 1 4 1 3817 99 1 2 1 }
DEFINITIONS ::=
BEGIN

   simpleNode OBJECT IDENTIFIER ::= { 1 3 6 1 4 1 3817  99 1 3 1 }

   SimpleEnum    ::= ENUMERATED { zero(0), one(1), two(2), fifty(50) }

   SimpleInteger ::= INTEGER    { zero(0), one(1), two(2), fifty(50) } 

   SimpleCounter ::= INTEGER

   SimpleNodeId  ::=  CHOICE 
		     { 
		         name GraphicString, 
		         number INTEGER, 
			 null   NULL 
		     } 
   
   SimpleNodeInfo ::= SEQUENCE
                      {
                         address SEQUENCE
                         {
                            street GraphicString,
                            city   GraphicString,
                            state  GraphicString,
                            zip    GraphicString
                         } OPTIONAL,
                         versionId CHOICE
                         {
                            number INTEGER,
                            name   GraphicString
                         },
			 supportedIds SET OF SimpleNodeId
                       }

   
   SimpleUserInfo ::= SEQUENCE
                      {
                         name GraphicString,
                         id   INTEGER,
                         dept INTEGER OPTIONAL
                      }
   SimpleUserList   ::= SEQUENCE OF SimpleUserInfo

   SimpleNodeIdList    ::= SEQUENCE OF SimpleNodeId

   SimpleLocationName ::= GraphicString

   SimpleBuffer       ::= OCTET STRING

   SimpleBoolean      ::= BOOLEAN

   SimpleReal         ::= REAL

   SimpleNull         ::= NULL

   SimpleBitString  ::= BIT STRING { locked(0), alarmed(1), active(2) }

END