-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKNIRecodeFile.h
More file actions
24 lines (22 loc) · 1.04 KB
/
KNIRecodeFile.h
File metadata and controls
24 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2023-2025 Orange. All rights reserved.
// This software is distributed under the BSD 3-Clause-clear License, the text of which is available
// at https://spdx.org/licenses/BSD-3-Clause-Clear.html or see the "LICENSE" file for more details.
#pragma once
/*
* Recode an input file to an output file, using a Khiops dictionary from a dictionary file
* The input file must have a header line, describing the structure of all its instances
* The input and output files have a tabular format
* The error file may be useful for debuging purpose. It is optional and may be empty.
*
* Parameters:
* Name of the dictionary file
* Name of the dictionary
* Name of the input file
* Name of the output file
* Name of the error file
* Returns recoded record number
*/
int KNIRecodeFile(const char* sDictionaryFileName, const char* sDictionaryName, const char* sInputFileName,
const char* sOutputFileName, const char* sErrorFileName);
// Call recoding function from a main-like function
void mainKNIRecodeFile(int argc, char** argv);