110 bool gs(
int aIndex)
const;
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Parses and composes GS1 data records with AI elements.
Definition: bpsgs1data.h:16
void clear()
Clear the record.
BpsGs1Data(const BpsGs1Data &aOther)
Copy constructor.
void fixup()
Fixup the record by removing elements in error, and recalculate the final checksum.
int indexOf(const QString &aAi, int aFrom=0)
Returns the index of the first element with this AI.
QString data(int aIndex) const
Get the element content.
bool gs(int aIndex) const
Get the GS (FNC1) requirement of an element.
void addElement(const QString &aAi, const QString &aData)
Add another element to the record.
BpsGs1Data & operator=(const BpsGs1Data &aOther)
Assignment.
Status status(int aIndex) const
Get an elements status.
int indexOf(const QRegExp &aAiRegExp, int aFrom=0)
Returns the index of the first element matching the search pattern by QRegExp::exactMatch(ai(index)).
BpsGs1Data(const QString &aString)
Construct a GS1 data object from parsing a string with the scanned content.
void setCode(const QString &aCode)
Set the code and parse it.
Status
Status of record and elements.
Definition: bpsgs1data.h:24
@ S_OK
The record or element is OK.
Definition: bpsgs1data.h:25
BpsGs1Data()
Construct an empty GS1 data object to compose a record.
QString ai(int aIndex) const
Get the application identifier of an element.