Documents > BPS V2 C++ API
bpsean128.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSEAN128_H
00005 #define BPSEAN128_H
00006 
00007 #include "bpscore_global.h"
00008 #include <QRegExp>
00009 
00015 class BPSCORE_EXPORT BpsEan128
00016 {
00017     BPS_PRIVATE(BpsEan128)
00018 
00019 public:
00020 
00024     enum Status {
00025         S_OK,           
00026         S_Error         
00027     };
00028 
00032     BpsEan128();
00033 
00038     BpsEan128(const QString& aString);
00039 
00044     BpsEan128(const BpsEan128& aOther);
00045 
00046     ~BpsEan128();
00047 
00053     BpsEan128& operator=(const BpsEan128& aOther);
00054 
00058     Status status() const;
00059 
00063     QString code() const;
00064 
00069     void setCode(const QString& aCode);
00070 
00074     void fixup();
00075 
00079     QString text() const;
00080 
00084     int count() const;
00085 
00091     QString ai(int aIndex) const;
00092 
00098     QString data(int aIndex) const;
00099 
00105     bool gs(int aIndex) const;
00106 
00112     Status status(int aIndex) const;
00113 
00121     void addElement(const QString& aAi, const QString& aData);
00122 
00129     int indexOf(const QString& aAi, int aFrom = 0);
00130 
00137     int indexOf(const QRegExp& aAiRegExp, int aFrom = 0);
00138 };
00139 
00140 #endif // BPSEAN128_H