Barcode Scanner SDK
Barcode decoder library
MWResult.h
Go to the documentation of this file.
1//
2// MWResult.h
3// mobiscan_ALL
4//
5// Created by vladimir zivkovic on 12/19/14.
6// Copyright (c) 2014 Manatee Works. All rights reserved.
7//
8
9//#import <Foundation/Foundation.h>
10#import <CoreGraphics/CoreGraphics.h>
11#if TARGET_OS_IPHONE
12#import <UIKit/UIKit.h>
13#endif
14@interface MWLocation : NSObject{
15
16 CGPoint _points[4];
17
18}
19
20@property (readwrite) CGPoint p1;
21@property (readwrite) CGPoint p2;
22@property (readwrite) CGPoint p3;
23@property (readwrite) CGPoint p4;
24@property (readonly) CGPoint *points;
25
26-(id)initWithPoints: (float) x1 y1: (float) y1 x2: (float) x2 y2: (float) y2 x3: (float) x3 y3: (float) y3 x4: (float) x4 y4: (float) y4;
27
28@end
29
30@interface MWResult : NSMutableDictionary
31
32@property (nonatomic, retain) NSString *text;
33@property (readwrite) uint8_t *bytes;
34@property (readwrite) uint8_t *encryptedResult;
35@property (readwrite) int bytesLength;
36@property (readwrite) int type;
37@property (nonatomic, retain) NSString *typeName;
38@property (readwrite) int subtype;
39@property (readwrite) int imageWidth;
40@property (readwrite) int imageHeight;
41@property (readwrite) bool isGS1;
42@property (readwrite) bool isKanji;
43@property (nonatomic, retain) NSString *textEncoding;
44@property (nonatomic, retain) MWLocation *locationPoints;
45
46
47@property (readwrite) int modulesCountX;
48@property (readwrite) int modulesCountY;
49@property (readwrite) float moduleSizeX;
50@property (readwrite) float moduleSizeY;
51@property (readwrite) float skew;
52
53@property (readwrite) float barcodeWidth;
54@property (readwrite) float barcodeHeight;
55
56@property (readwrite) int pdfRowsCount;
57@property (readwrite) int pdfColumnsCount;
58@property (readwrite) int pdfECLevel;
59@property (readwrite) bool pdfIsTruncated;
60@property (readwrite) uint32_t *pdfCodewords;
61
62
63
64
65
66
67
68@end
69
70
71
72@interface MWResults : NSObject
73
74
75@property (readwrite) int version;
76@property (nonatomic, retain) NSMutableArray *results;
77@property (readwrite) int count;
78
79
80-(id)initWithBuffer:(uint8_t *)buffer;
81- (MWResult *) resultAtIntex: (int) index;
82
83@end
84
85
86
87
unsigned int uint32_t
Definition: BarcodeScanner.h:22
unsigned char uint8_t
Definition: BarcodeScanner.h:23
Definition: MWResult.h:14
CGPoint _points[4]
Definition: MWResult.h:16
Definition: MWResult.h:31
uint8_t * bytes
Definition: MWResult.h:33
NSString * text
Definition: MWResult.h:32
uint32_t * pdfCodewords
Definition: MWResult.h:60
float moduleSizeY
Definition: MWResult.h:50
int pdfColumnsCount
Definition: MWResult.h:57
bool isKanji
Definition: MWResult.h:42
int subtype
Definition: MWResult.h:38
int bytesLength
Definition: MWResult.h:35
NSString * typeName
Definition: MWResult.h:37
float skew
Definition: MWResult.h:51
NSString * textEncoding
Definition: MWResult.h:43
MWLocation * locationPoints
Definition: MWResult.h:44
int pdfRowsCount
Definition: MWResult.h:56
int type
Definition: MWResult.h:36
bool pdfIsTruncated
Definition: MWResult.h:59
float barcodeHeight
Definition: MWResult.h:54
float moduleSizeX
Definition: MWResult.h:49
int modulesCountX
Definition: MWResult.h:47
bool isGS1
Definition: MWResult.h:41
int modulesCountY
Definition: MWResult.h:48
uint8_t * encryptedResult
Definition: MWResult.h:34
float barcodeWidth
Definition: MWResult.h:53
int imageHeight
Definition: MWResult.h:40
int pdfECLevel
Definition: MWResult.h:58
int imageWidth
Definition: MWResult.h:39
Definition: MWResult.h:73