Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
SimpleCsvComparator Service

Warning
The interface is not yet finalized. It may still evolve.

Warning
This subsection was designed as a follow-up to the subsection Service SimpleCsvOutput.

This service allows comparing the values of two SimpleTableInternal objects against each other. During a code run that integrates a service of type ISimpleTableOutput, it is possible to generate a reference file (or several, one per subdomain, if desired).

Then, during a subsequent run, it is possible to compare the values from the reference file generated previously with the values stored in the service of type ISimpleTableOutput of the current run.

Thanks to the CSV format, it is also possible to view and modify the reference values, if desired.

This service can be used as a standard service defined in a module's AXL or as a singleton to have a unique instance for all modules.

This subsection introduces this service. Not all use cases will be covered, so it is recommended to consult the documentation for the ISimpleTableComparator interface to fully utilize this service.


Table of Contents for this subsection:

  1. Usage
    Summarizes how to use the service.
  2. Examples: Generalities
    Some general information to read before tackling the examples.
  3. Example No. 1
    This simple example introduces how to use the service in singleton mode.
  4. Example No. 2
    This example does not use singleton mode.
  5. Example No. 3
    This example mixes a singleton SimpleCsvOutput and a non-singleton SimpleCsvComparator. There is also an example of using regular expressions.