Skip to content

Commit a3dda75

Browse files
Merge pull request #27 from dynamsoft-docs/preview
update to internal commit b9d1a4aa
2 parents 05095e6 + b208a80 commit a3dda75

File tree

5 files changed

+270
-57
lines changed

5 files changed

+270
-57
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ repository: dynamsoft-docs/code-parser-docs-server
33
docFullPath: https://www.dynamsoft.com/code-parser/docs/server
44
firstLevelUrl: /code-parser/docs/server/
55
docHomePage: /code-parser/docs/core/introduction/
6+
needSearchIndex: true
7+
searchNeedFilter: true
68

79
dcp_cpp: /code-parser/docs/server/programming/cplusplus/
810
dcp_cpp_api: /code-parser/docs/server/programming/cplusplus/api-reference/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: default-layout
3+
title: MappingStatus - Dynamsoft Code Parser Enumerations
4+
description: The enumeration MappingStatus of Dynamsoft Code Parser represents the outcome of a mapping operation on a field.
5+
keywords: Mapping status
6+
---
7+
8+
# Enumeration MappingStatus
9+
10+
`MappingStatus` represents the outcome of a mapping operation on a field.
11+
12+
<div class="sample-code-prefix template2"></div>
13+
>- C++
14+
>
15+
>
16+
```cpp
17+
typedef enum MappingStatus
18+
{
19+
/** The field has no mapping specified. */
20+
MS_NONE,
21+
/** Find a mapping for the field value. */
22+
MS_SUCCEEDED,
23+
/** Failed to find a mapping for the field value. */
24+
MS_FAILED
25+
} MappingStatus;
26+
```
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: default-layout
3+
title: ValidationStatus - Dynamsoft Code Parser Enumerations
4+
description: The enumeration ValidationStatus of Dynamsoft Code Parser describes the outcome of a validation process on a field.
5+
keywords: Validation status
6+
---
7+
8+
# Enumeration ValidationStatus
9+
10+
`ValidationStatus` describes the outcome of a validation process on a field.
11+
12+
<div class="sample-code-prefix template2"></div>
13+
>- C++
14+
>
15+
>
16+
```cpp
17+
typedef enum ValidationStatus
18+
{
19+
/** The field has no validation specified. */
20+
VS_NONE,
21+
/** The validation for the field has been succeeded. */
22+
VS_SUCCEEDED,
23+
/** The validation for the field has been failed. */
24+
VS_FAILED
25+
} ValidationStatus;
26+
```
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
---
2+
layout: default-layout
3+
title: CParsedResult Class - Dynamsoft Code Parser SDK C++ Edition API Reference
4+
description: This page shows CParsedResult Class of Dynamsoft Code Parser SDK C++ Edition.
5+
keywords: CParsedResult, api reference, c++
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
10+
# CParsedResult Class
11+
12+
```cpp
13+
class dynamsoft::dcp::CParsedResult
14+
```
15+
16+
| Method | Description |
17+
|----------------------|-------------|
18+
| [`GetOriginalImageHashId`](#getoriginalimagehashid) | Gets the hash ID of the source image. |
19+
| [`GetOriginalImageTag`](#getoriginalimagetag) | Gets the tag of the source image. |
20+
| [`GetItemsCount`](#getitemscount) | Gets the number of parsed result items in the parsed result. |
21+
| [`GetItem`](#getitem) | Gets the parsed result item at the specified index. |
22+
| [`GetErrorCode`](#geterrorcode) | Gets the error code of the parsed result, if an error occurred. |
23+
| [`GetErrorString`](#geterrorstring) | Gets the error message of the parsed result, if an error occurred. |
24+
| [`HasItem`](#hasitem) | Check if the item is present in the array. |
25+
| [`RemoveItem`](#removeitem) | Remove a specific item from the array in the parsed results. |
26+
| [`Release`](#release) | Decreases the reference count of the `CParsedResult` object. |
27+
| [`Retain`](#retain) | Increases the reference count of the `CParsedResult` object. |
28+
| [`operator[]`](#operator) | Gets a pointer to the `CParsedResultItem` object at the specified index.|
29+
| [`AddItem`](#additem) | Adds a specific item to the array in the parsed result. |
30+
31+
## GetOriginalImageHashId
32+
33+
Gets the hash ID of the source image.
34+
35+
```cpp
36+
virtual const char* GetOriginalImageHashId() const = 0;
37+
```
38+
39+
**Return value**
40+
41+
Returns a pointer to a null-terminated string containing the hash ID of the source image.
42+
43+
## GetOriginalImageTag
44+
45+
Gets the tag of the source image.
46+
47+
```cpp
48+
virtual const CImageTag* GetOriginalImageTag() const = 0;
49+
```
50+
51+
**Return value**
52+
53+
Returns a pointer to a CImageTag object representing the tag of the source image.
54+
55+
**See Also**
56+
57+
[CImageTag]({{ site.dcv_cpp_api }}core/basic-structures/image-tag.html)
58+
59+
## GetItemsCount
60+
61+
Gets the number of parsed result items in the parsed result.
62+
63+
```cpp
64+
virtual int GetItemsCount() const = 0;
65+
```
66+
67+
**Return value**
68+
69+
Returns the number of parsed result items in the parsed result.
70+
71+
## GetItem
72+
73+
Gets the parsed result item at the specified index.
74+
75+
```cpp
76+
virtual const CParsedResultItem* GetItem(int index) const = 0;
77+
```
78+
79+
**Parameters**
80+
81+
`[in] index` The zero-based index of the text line result item to retrieve.
82+
83+
**Return value**
84+
85+
Returns a pointer to the `CParsedResultItem` object at the specified index.
86+
87+
**See Also**
88+
89+
[CParsedResultItem]({{ site.dcp_cpp_api }}parsed-result-item.html)
90+
91+
## GetErrorCode
92+
93+
Gets the error code of the parsed result, if an error occurred.
94+
95+
```cpp
96+
virtual int GetErrorCode() const = 0;
97+
```
98+
99+
**Return value**
100+
101+
Returns the error code of the parsed result, or 0 if no error occurred.
102+
103+
## GetErrorString
104+
105+
Gets the error message of the parsed result, if an error occurred.
106+
107+
```cpp
108+
virtual const char* GetErrorString() const = 0;
109+
```
110+
111+
**Return value**
112+
113+
Returns a pointer to a null-terminated string containing the error message of the parsed result, or a pointer to an empty string if no error occurred.
114+
115+
## HasItem
116+
117+
Check if the item is present in the array.
118+
119+
```cpp
120+
virtual bool HasItem(const CParsedResultItem* item) const = 0;
121+
```
122+
123+
**Parameters**
124+
125+
`[in] item` The specific item to be checked.
126+
127+
**Return value**
128+
129+
Returns a bool value indicating whether the item is present in the array or not.
130+
131+
**See Also**
132+
133+
[CParsedResultItem]({{ site.dcp_cpp_api }}parsed-result-item.html)
134+
135+
## RemoveItem
136+
137+
Remove a specific item from the array in the parsed results.
138+
139+
```cpp
140+
virtual int RemoveItem(const CParsedResultItem* item) = 0;
141+
```
142+
143+
**Parameters**
144+
145+
`[in] item` The specific item to be removed.
146+
147+
**Return value**
148+
149+
Returns an error code. Zero indicates success.
150+
151+
**See Also**
152+
153+
[CParsedResultItem]({{ site.dcp_cpp_api }}parsed-result-item.html)
154+
155+
156+
## Release
157+
158+
Decreases the reference count of the `CParsedResult` object.
159+
160+
```cpp
161+
virtual void Release() = 0;
162+
```
163+
164+
## Retain
165+
166+
Increases the reference count of the `CParsedResult` object.
167+
168+
```cpp
169+
virtual CParsedResult* Retain() = 0;
170+
```
171+
172+
**Return value**
173+
174+
Returns an object of `CParsedResult`.
175+
176+
## operator[]
177+
178+
Gets a pointer to the `CParsedResultItem` object at the specified index.
179+
180+
```cpp
181+
virtual const CParsedResultItem* operator[](int index) const = 0;
182+
```
183+
184+
**Parameters**
185+
186+
`[in] index` The index of the parsed result item to retrieve.
187+
188+
**Return value**
189+
190+
Returns a pointer to the `CParsedResultItem` object at the specified index.
191+
192+
**See Also**
193+
194+
[CParsedResultItem]({{ site.dcp_cpp_api }}parsed-result-item.html)
195+
196+
## AddItem
197+
198+
Adds a specific item to the array in the parsed result.
199+
200+
```cpp
201+
virtual int AddItem(const CParsedResultItem* item) = 0;
202+
```
203+
204+
**Parameters**
205+
206+
`[in] item` The specific item to be added.
207+
208+
**Return value**
209+
210+
Returns an error code. Zero indicates success.
211+
212+
**See Also**
213+
214+
[CParsedResultItem]({{ site.dcp_cpp_api }}parsed-result-item.html)
215+

programming/cplusplus/api-reference/parsed-result.md

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,20 @@ needAutoGenerateSidebar: true
1010
# CParsedResult Class
1111

1212
```cpp
13-
class dynamsoft::dcp::CParsedResult
13+
class dynamsoft::dcp::CParsedResult : public CCapturedResultBase
1414
```
1515
1616
| Method | Description |
1717
|----------------------|-------------|
18-
| [`GetOriginalImageHashId`](#getoriginalimagehashid) | Gets the hash ID of the source image. |
19-
| [`GetOriginalImageTag`](#getoriginalimagetag) | Gets the tag of the source image. |
2018
| [`GetItemsCount`](#getitemscount) | Gets the number of parsed result items in the parsed result. |
2119
| [`GetItem`](#getitem) | Gets the parsed result item at the specified index. |
22-
| [`GetErrorCode`](#geterrorcode) | Gets the error code of the parsed result, if an error occurred. |
23-
| [`GetErrorString`](#geterrorstring) | Gets the error message of the parsed result, if an error occurred. |
2420
| [`HasItem`](#hasitem) | Check if the item is present in the array. |
2521
| [`RemoveItem`](#removeitem) | Remove a specific item from the array in the parsed results. |
2622
| [`Release`](#release) | Decreases the reference count of the `CParsedResult` object. |
2723
| [`Retain`](#retain) | Increases the reference count of the `CParsedResult` object. |
2824
| [`operator[]`](#operator) | Gets a pointer to the `CParsedResultItem` object at the specified index.|
2925
| [`AddItem`](#additem) | Adds a specific item to the array in the parsed result. |
3026
31-
## GetOriginalImageHashId
32-
33-
Gets the hash ID of the source image.
34-
35-
```cpp
36-
virtual const char* GetOriginalImageHashId() const = 0;
37-
```
38-
39-
**Return value**
40-
41-
Returns a pointer to a null-terminated string containing the hash ID of the source image.
42-
43-
## GetOriginalImageTag
44-
45-
Gets the tag of the source image.
46-
47-
```cpp
48-
virtual const CImageTag* GetOriginalImageTag() const = 0;
49-
```
50-
51-
**Return value**
52-
53-
Returns a pointer to a CImageTag object representing the tag of the source image.
54-
55-
**See Also**
56-
57-
[CImageTag]({{ site.dcv_cpp_api }}core/basic-structures/image-tag.html)
58-
5927
## GetItemsCount
6028
6129
Gets the number of parsed result items in the parsed result.
@@ -88,30 +56,6 @@ Returns a pointer to the `CParsedResultItem` object at the specified index.
8856
8957
[CParsedResultItem]({{ site.dcp_cpp_api }}parsed-result-item.html)
9058
91-
## GetErrorCode
92-
93-
Gets the error code of the parsed result, if an error occurred.
94-
95-
```cpp
96-
virtual int GetErrorCode() const = 0;
97-
```
98-
99-
**Return value**
100-
101-
Returns the error code of the parsed result, or 0 if no error occurred.
102-
103-
## GetErrorString
104-
105-
Gets the error message of the parsed result, if an error occurred.
106-
107-
```cpp
108-
virtual const char* GetErrorString() const = 0;
109-
```
110-
111-
**Return value**
112-
113-
Returns a pointer to a null-terminated string containing the error message of the parsed result, or a pointer to an empty string if no error occurred.
114-
11559
## HasItem
11660
11761
Check if the item is present in the array.

0 commit comments

Comments
 (0)