![]() |
![]() |
![]() |
![]() |
![]() |
Printing Opportunities
The print functions can be used for test and debug purposes. They will be available at runtime only if the compilation switch CODER_VMS_PRINT is set, see Printing configuration.
There are two print functions available, ASN1_PRINT_TYPE and ASN1_PRINT. The print functions use the type information in the same way as an encoding function.
The function ASN1_PRINT_TYPE prints the contents of the type information structure for one particular type. There are two input parameters, the first is a file handle and the second is a reference to the type information.
The function ASN1_PRINT prints the value of a variable or signal parameter. This print function has got three input parameters, the first is a file reference, the second is a reference to the type information structure and the third is a reference to the variable or the signal parameter.
Example 485 : Print type information
logfile = fopen( "asn1print.log", "w" );
ASN1_PRINT_TYPE( logfile,
(tASN1TypeInfo *)&yASN1_TestType);Example 486 : Print value of signal parameter
logfile = fopen( "asn1print.log", "w" );
ASN1_PRINT( logfile, (tASN1TypeInfo *)&yASN1_TestType,
(void *)&((yPDef_outsig *)(*SignalOut))->Param1);
fclose( logfile );
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |