logo

ASN1C

C/C++ Compiler User's Manual

Objective Systems, Inc.

The software described in this document is furnished under a license agreement and may be used only in accordance with the terms of this agreement. This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety with the copyright and this notice intact. Comments, suggestions, and inquiries regarding ASN1C or this document may be sent by electronic mail to .

Revision History

Table of Contents

1. Overview of ASN1C
2. Using the Compiler
Running ASN1C from the Command-line
Using the GUI Wizard to Run ASN1C
Compiling and Linking Generated Code
Porting Run-time Code to Other Platforms
Compiler Configuration File
Compiler Error Reporting
3. ASN.1 To C/C++ Mappings
Type Mappings
Value Mappings
Table Constraint Related Structures
4. XSD TO C/C++ TYPE MAPPINGS
XSD Simple Types
XSD Complex Types
5. Generated C/C++ Source Code
Header (.h) File
Generated C Source Files
Generated C++ files
Generated C/C++ files and the -compat Option
Generated C++ files and the -symbian Option
Generated Build Files
6. Generated Encode/Decode Function and Methods
Encode/Decode Function Prototypes
Generated C++ Control Class Definition
Generated Information Object Table Structures
General Procedures for Encoding and Decoding
7. Generated BER Functions
Generated BER Encode Functions
Generated BER Streaming Encode Functions
Generated BER Decode Functions
BER Decode Performance Enhancement Techniques
Generated BER Streaming Decode Functions
8. Generated PER Functions
Generated PER Encode Functions
Generated PER Decode Functions
9. Generated XML Functions
Generated XER Encode Functions
Generated XER Decode Functions
Generated XML Encode Functions
Generated XML Decode Functions
10. Additional Generated Functions
Generated Initialization Functions
Generated Memory Free Functions
Generated Print Functions
Generated Compare Functions
Generated Copy Functions
Generated Test Functions
11. Event Handler Interface
How it Works
How to Use It
12. IMPORT/EXPORT of Types
13. ROSE and SNMP Macro Support
ROSE OPERATION and ERROR
SNMP OBJECT-TYPE
A. Runtime Status Codes
ASN1C Error Messages
General Status Messages
ASN.1-specific Status Messages