Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

Data Transformation User Guide

Data Transformation User Guide

C/C++ Interface Example

C/C++ Interface Example

As an example of one of the C/C++ interfaces, consider a document processor that accepts file input. The processor must implement the
CMXProcessFile
function, which has the following syntax:
int CMXProcessFile( void* sessionToken, const CMXContext* params, const IFfile_char_t* in_file, int in_len, IFfile_char_t** out_file, int* out_len, CMXEventReporter* reporter)
The following table describes the parameters:
Parameter
Description
sessionToken
Input parameter. A pointer to the current session.
params
Input parameter. A structure containing the properties that the Script passes to the component.
in_file
Input parameter. The full path of the file upon which the component should operate.
in_len
Input parameter. The length, in bytes, of the input file path.
out_file
Output parameter. The full path of a file that contains the output of the component.
out_len
Output parameter. The length, in bytes, of the output file path.
reporter
Input parameter. Provides the
report
method, which the component can use to write events to the event log.
Return value
Output parameter. 1 if successful, 0 if unsuccessful.


Updated September 26, 2018