-
Objective System’s ASN1C compiler translates ASN.1 and/or XML schema (XSD) source specifications into C, C++, C#, or Java source code. Developers can use this code to translate structures/objects to and from finished ASN.1 messages using any of the ITU-T/ISO encoding rules (BER, CER, DER, PER or XER) as well as the ISO/IEEE Medical Device Encoding Rules (MDER) and NTCIP Octet Encoding Rules (OER). ASN1C also includes tools for converting XSD specifications to ASN.1 specifications and vice versa.
ASN1C generated code consists of type definitions and encode/decode functions (or methods) that provide a complete Application Programming Interface (API) for working with the message definitions contained within an ASN.1 specification.
In addition to the compiler, a run-time library of common encode/decode functions is also part of the package. This library contains routines to encode and decode ASN.1 primitives (BOOLEAN, INTEGER, etc.). The ASN1C compiler assembles a series of calls to these functions to accomplish the encoding or decoding of more complex message types.All that a programmer needs to do to get an encoder/decoder up and running is to:
1. Run ASN1C to generate code for a given ASN.1 or XSD specification,
2. Develop an application to call functions/methods within the generated code,
3. Compile/link the application, generated code, and run-time libraries.
To assist with items 2 and 3, the compiler also has the capability to generate sample reader and writer programs as well as a makefile to build all of the generated code.ASN.1 to C or C++ Compiler
Both the C and C++ version use a common base run-time library consisting of a set of low-level primitive C functions for encoding and decoding the base types. The code generation is done predominantly in C and provides a complete set of C API functions for all defined ASN.1 types.
The C++ code generation capability adds a set of class "wrappers" that hide most of the details in invoking the encode/decode functions. These wrappers provide additional services specific to C++. These include automatic initialization of variables of generated types through constructors, easier assignment and testing of data through operator overloading, and virtual callback interfaces through the event handling mechanism.
ASN.1 to Java or C# Compilera
The generated Java code consists of a series of Java source files - one for each production (type) defined within an ASN.1 specification. Each of these Java files contains (at a minimum) the following items:
• A public member data variable (or variables) to hold data of the generated type.
• A constructor (or constructors) to initialize the variable.
• An encode method.
• A decode method.
• A print method to print the contents of the object to a given output stream.There is also a run-time library for Java. This consists of a series of classes for encoding and decoding the primitive ASN.1 types. For example, the Asn1Integer class will encode or decode a variable of the ASN.1 INTEGER type. The compiler will extend these base classes to form higher level types derived directly from the base types, or assemble a series of these lower level objects to form constructed types (SEQUENCE, for example).
Generation of C# code is very similar to the Java generation described above. A separate C# class is generated for each production defined in an ASN.1 specification. This contains constructors and methods for encoding and decoding an instance of the class using any of the ASN.1 encoding rules.
Java or C# embedded development kits are available which support the Java MicroEdition (J2ME) or C# compact edition libraries.
上海道寧信息科技有限公司是一家專業(yè)從事軟件構(gòu)件銷售,軟件構(gòu)件化技術(shù)咨詢,軟件構(gòu)件化應(yīng)用和開發(fā)的高科技公司。公司自成立以來,已經(jīng)與國內(nèi)外眾多控件開發(fā)商建立了長期穩(wěn)定的合作關(guān)系,是眾多商家在中國大陸地區(qū)的經(jīng)銷商,同時(shí)我們也是上??莆聡野肆?xiàng)目“上海構(gòu)件庫”的戰(zhàn)略合作伙伴。在公司全體同仁的共同努力下,我們已經(jīng)成為目前中國有影響力的構(gòu)件與中間件分銷商之一,有著廣泛的客戶基礎(chǔ)和良好的合作信譽(yù)。公司的產(chǎn)品包括上百種經(jīng)過嚴(yán)格專業(yè)測試的主打產(chǎn)品以及上千種涵蓋各種開發(fā)語言和平臺(tái)、在市場中*的產(chǎn)品,數(shù)以千 計(jì)的項(xiàng)目經(jīng)理和開發(fā)人員使用著我們推薦的開發(fā)工具,成功的控制了項(xiàng)目進(jìn)度,節(jié)省了時(shí)間和資金投入。公司擁有的技術(shù)支持和*團(tuán)隊(duì),在構(gòu)件領(lǐng)域積累了多年的豐富經(jīng)驗(yàn),并與國內(nèi)外眾多的構(gòu)件開發(fā)商有長期的技術(shù)合作往 來,能夠?yàn)榭蛻籼峁?gòu)件解決方案和完善的技術(shù)咨詢與支持服務(wù)。
網(wǎng)絡(luò)監(jiān)控軟件
ASN.1 to C/C++/C#/JAVA 產(chǎn)品信息
在找 ASN.1 to C/C++/C#/JAVA 產(chǎn)品的人還在看