glbarcode++
Loading...
Searching...
No Matches
BarcodePostnet.hpp
Go to the documentation of this file.
1
// BarcodePostnet.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_BarcodePostnet_hpp
22
#define glbarcode_BarcodePostnet_hpp
23
24
25
#include "
Barcode1dBase.hpp
"
26
27
28
namespace
glbarcode
29
{
30
64
class
BarcodePostnet
:
public
Barcode1dBase
65
{
66
public
:
72
static
Barcode
*
create
();
73
74
75
protected
:
79
virtual
bool
validateDigits
(
int
nDigits );
80
81
82
private
:
83
bool
validate(
const
std::string& rawData )
override
;
84
85
std::string encode(
const
std::string& cookedData )
override
;
86
87
void
vectorize(
const
std::string& codedData,
88
const
std::string& displayText,
89
const
std::string& cookedData,
90
double
& w,
91
double
& h )
override
;
92
93
};
94
95
}
96
97
98
#endif
// glbarcode_BarcodePostnet_hpp
Barcode1dBase.hpp
glbarcode::Barcode1dBase
Definition
Barcode1dBase.hpp:44
glbarcode::BarcodePostnet
Definition
BarcodePostnet.hpp:65
glbarcode::BarcodePostnet::create
static Barcode * create()
glbarcode::BarcodePostnet::validateDigits
virtual bool validateDigits(int nDigits)
glbarcode::Barcode
Definition
Barcode.hpp:52
glbarcode
Definition
Barcode.hpp:38
glbarcode
BarcodePostnet.hpp
Generated by
1.9.8