#pragma once
#include <string>
namespace ZXing {
class BitArray;
namespace Aztec {
class Token
{
public:
void appendTo(BitArray& bitArray, const std::string& text) const;
static Token CreateSimple(int value, int bitCount) {
return {value, -bitCount};
}
static Token CreateBinaryShift(int start, int byteCount) {
return {start, byteCount};
}
private:
short _value;
short _count;
public:
Token(int value, int count) : _value((short)value), _count((short)count) {}
};
} }