CBarcode.h
Go to the documentation of this file.
1 #ifndef ibarcode_CBarcode_included
2 #define ibarcode_CBarcode_included
3 
4 
5 // ACF includes
6 #include <ibarcode/IBarcode.h>
7 
8 
9 namespace ibarcode
10 {
11 
12 
16 class CBarcode: virtual public IBarcode
17 {
18 public:
19  CBarcode(int barcodeType = BT_UNKNOWN, const QString& data = QString());
20  CBarcode(const ibarcode::CBarcode& barcode);
21 
22  virtual CBarcode& operator=(const CBarcode& barcode);
23  virtual bool operator==(const CBarcode& barcode) const;
24  virtual bool operator!=(const CBarcode& barcode) const;
25 
26  virtual void SetData(const QString& barcodeData);
27 
28  // reimplemented (ibarcode::IBarcode)
29  virtual const QString& GetBarcodeData() const;
30  virtual int GetBarcodeType() const;
31 
32  // reimplemented (iser::ISerializable)
33  virtual bool Serialize(iser::IArchive& archive);
34 
35 protected:
36  QString m_barcodeData;
38 };
39 
40 
41 } // namespace ibarcode
42 
43 
44 #endif // !ibarcode_CBarcode_included
45 
46 
virtual bool Serialize(iser::IArchive &archive)
Implementation of the simple barcode data container.
Definition: CBarcode.h:16
Interface for access the barcode data.
Definition: IBarcode.h:16
virtual void SetData(const QString &barcodeData)
virtual bool operator==(const CBarcode &barcode) const
virtual bool operator!=(const CBarcode &barcode) const
virtual const QString & GetBarcodeData() const
Get the data of the barcode.
CBarcode(int barcodeType=BT_UNKNOWN, const QString &data=QString())
virtual CBarcode & operator=(const CBarcode &barcode)
QString m_barcodeData
Definition: CBarcode.h:36
virtual int GetBarcodeType() const
Get the type of the barcode.

© 2007-2017 Witold Gantzke and Kirill Lepskiy