Table of Contents


  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

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
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:
Input parameter. A pointer to the current session.
Input parameter. A structure containing the properties that the Script passes to the component.
Input parameter. The full path of the file upon which the component should operate.
Input parameter. The length, in bytes, of the input file path.
Output parameter. The full path of a file that contains the output of the component.
Output parameter. The length, in bytes, of the output file path.
Input parameter. Provides the
method, which the component can use to write events to the event log.
Return value
Output parameter. 1 if successful, 0 if unsuccessful.

Updated March 03, 2021