forked from nuveo/nuance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuancec.cpp
94 lines (73 loc) · 2.35 KB
/
nuancec.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#include "nuance.hpp"
#include "nuancec.h"
nuancePtr nuanceNew(void) {
nuance *n = new nuance();
return (void*)n;
}
void nuanceFree(nuancePtr n) {
nuance *ptr = (nuance*)n;
delete ptr;
}
void nuanceQuit(nuancePtr n) {
nuance *ptr = (nuance*)n;
ptr->Quit();
}
int nuanceInit(nuancePtr n,
const char *company,
const char *product,
char *errBuff,
const int errSize) {
nuance *ptr = (nuance*)n;
return ptr->Init(company,
product,
errBuff,
errSize);
}
int nuanceSetLicense(nuancePtr n,
const char *licenceFile,
const char *oemCode,
char *errBuff,
const int errSize) {
nuance *ptr = (nuance*)n;
return ptr->SetLicense(licenceFile,
oemCode,
errBuff,
errSize);
}
int nuanceLoadFormTemplateLibrary(nuancePtr n,
const char *templateFile,
char *errBuff,
const int errSize) {
nuance *ptr = (nuance*)n;
return ptr->LoadFormTemplateLibrary(templateFile,
errBuff,
errSize);
}
int nuancePreprocessImgWithTemplate(nuancePtr n,
const char *imgFile,
char *errBuff,
const int errSize) {
nuance *ptr = (nuance*)n;
return ptr->PreprocessImgWithTemplate(imgFile, errBuff, errSize);
}
int nuanceGetZoneCount(nuancePtr n) {
nuance *ptr = (nuance*)n;
return ptr->getZoneCount();
}
int nuanceGetZoneData(nuancePtr n,
const int zoneID,
char *zoneName,
const int zoneNameSize,
char *zoneText,
const int zoneTextSize) {
nuance *ptr = (nuance*)n;
return ptr->getZoneData(zoneID,
zoneName,
zoneNameSize,
zoneText,
zoneTextSize);
}
void nuanceFreeImgWithTemplate(nuancePtr n) {
nuance *ptr = (nuance*)n;
ptr->FreeImgWithTemplate();
}