ByteMatrix.h Example File
appdemos/qtws/QZXing/zxing/zxing/qrcode/encoder/ByteMatrix.h
#ifndef BYTEMATRIX_H
#define BYTEMATRIX_H
#include <vector>
#include <string>
#include <zxing/common/Counted.h>
#include <zxing/common/Types.h>
namespace zxing {
namespace qrcode {
class ByteMatrix : public Counted
{
private:
std::vector< std::vector<byte> > bytes_;
size_t width_;
size_t height_;
public:
ByteMatrix(size_t width, size_t height);
size_t getHeight() const;
size_t getWidth() const;
byte get(size_t x, size_t y) const;
std::vector<std::vector<byte> > getArray() const;
void set(size_t x, size_t y, const byte value);
void set(size_t x, size_t y, size_t value);
void set(size_t x, size_t y, bool value);
void clear(const byte value);
const std::string toString() const;
};
}
}
#endif //BYTEMATRIX_H