winIDEA SDK
test_ctrace_csv_export_format.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8def test_CTraceCSVExportFormat():
9 print("Example of creating CSV trace export formatter...")
10 fmt = ic.CTraceCSVExportFormat()
11 fmt.setColumnHeaders(True)
12 fmt.setSeparator(";")
13 print(f"Export format: {fmt.getExportFormatAsStr()}")
14 print(f"CSV data separator: {fmt.getSeparator()}")
15 print(f"Contains column headers: {fmt.isColumnHeaders()}")
16
17 # TODO add example of options set by file
18
19
20if __name__ == "__main__":
21 test_CTraceCSVExportFormat()