forked from netshade/Cocoa-Touch-Barcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNKDCodabarBarcode.h
36 lines (33 loc) · 1.47 KB
/
NKDCodabarBarcode.h
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
// -----------------------------------------------------------------------------------
// NKDCodabarBarcode.h
// -----------------------------------------------------------------------------------
// Created by Jeff LaMarche on Sun May 12 2002.
// ©2002 Naked Software. All rights reserved.
// -----------------------------------------------------------------------------------
// THIS SOURCE CODE IS PROVIDED AS-IS WITH NO WARRANTY OF ANY KIND
// -----------------------------------------------------------------------------------
// You may use and redistribute this source code without limitation
// -----------------------------------------------------------------------------------
#import <Foundation/Foundation.h>
#import "NKDBarcode.h"
/*!
@header NKDCodabarBarcode.h
This concrete subclass of NKDBarcode implements the self-checking Codabar style barcode used
by FedEx and in blood banks. It can encode 20 different characters - numeric digits 0-9, plus
four start/stop characters (A, B, C, D), and 6 other common symbols
*/
/*!
@class NKDCodabarBarcode
@discussion Implementation of the Codabar barcode using 1:2 narrow to wide ratio.
*/
@interface NKDCodabarBarcode : NKDBarcode
{
}
/*!
@method _encodeChar
@abstract Private method to turn a single character into a string of 1s and 0s.
@discussion Encodes characters according to Codabar's specification
@result String of 0s and 1s representing inChar encoded for this barcode.
*/
-(NSString *) _encodeChar:(char)inChar;
@end