glbarcode++
Loading...
Searching...
No Matches
BarcodeEan13.hpp
Go to the documentation of this file.
1
// BarcodeEan13.hpp
2
//
3
// Copyright (C) 2013-2026 Jaye Evins <evins@snaught.com>
4
//
5
// This file is part of glbarcode++.
6
//
7
// glbarcode++ is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU Lesser General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// glbarcode++ is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU Lesser General Public License for more details.
16
//
17
// You should have received a copy of the GNU Lesser General Public License
18
// along with glbarcode++. If not, see <http://www.gnu.org/licenses/>.
19
//
20
21
#ifndef glbarcode_BarcodeEan13_hpp
22
#define glbarcode_BarcodeEan13_hpp
23
24
25
#include "
BarcodeUpcBase.hpp
"
26
27
28
namespace
glbarcode
29
{
30
39
class
BarcodeEan13
:
public
BarcodeUpcBase
40
{
41
public
:
47
static
Barcode
*
create
();
48
49
53
BarcodeEan13
();
54
55
56
private
:
57
bool
validateDigits(
int
nDigits )
override
;
58
59
std::string preprocess(
const
std::string& rawData )
override
;
60
61
void
vectorizeText(
const
std::string& displayText,
62
double
size1,
63
double
size2,
64
double
x1Left,
65
double
x1Right,
66
double
y1,
67
double
x2Left,
68
double
x2Right,
69
double
y2 )
override
;
70
71
};
72
73
}
74
75
76
#endif
// glbarcode_BarcodeEan13_hpp
BarcodeUpcBase.hpp
glbarcode::BarcodeEan13
Definition
BarcodeEan13.hpp:40
glbarcode::BarcodeEan13::create
static Barcode * create()
glbarcode::BarcodeEan13::BarcodeEan13
BarcodeEan13()
glbarcode::BarcodeUpcBase
Definition
BarcodeUpcBase.hpp:37
glbarcode::Barcode
Definition
Barcode.hpp:52
glbarcode
Definition
Barcode.hpp:38
glbarcode
BarcodeEan13.hpp
Generated by
1.9.8