glbarcode++
 
Loading...
Searching...
No Matches
BarcodeOnecode.hpp
Go to the documentation of this file.
1// BarcodeOnecode.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_BarcodeOnecode_hpp
22#define glbarcode_BarcodeOnecode_hpp
23
24
25#include "Barcode1dBase.hpp"
26
27#include <cstdint>
28
29
30namespace glbarcode
31{
32
42 {
43 public:
49 static Barcode* create();
50
51
52 private:
53 bool validate( const std::string& rawData ) override;
54
55 std::string encode( const std::string& cookedData ) override;
56
57 void vectorize( const std::string& codedData,
58 const std::string& displayText,
59 const std::string& cookedData,
60 double& w,
61 double& h ) override;
62
63
64 private:
65 uint32_t USPS_MSB_Math_CRC11GenerateFrameCheckSequence( const uint8_t* ByteArrayPtr );
66
67 };
68
69}
70
71
72#endif // glbarcode_BarcodeOnecode_hpp
Definition Barcode1dBase.hpp:44
Definition BarcodeOnecode.hpp:42
static Barcode * create()
Definition Barcode.hpp:52
Definition Barcode.hpp:38