29#include <sptk5/sptk.h>
31#include <sptk5/Field.h>
32#include <sptk5/Strings.h>
33#include <sptk5/Variant.h>
110 return (uint32_t) m_fldSize;
119 return m_displayFormat;
127 m_displayFormat = format;
156 m_fldType = fieldType;
157 m_fldSize = fieldLength;
158 m_fldScale = fieldScale;
161 String doubleDataToString()
const override;
169 int m_alignment {ALIGN_LEFT};
172using SDatabaseField = std::shared_ptr<DatabaseField>;
database field
Definition: DatabaseField.h:50
int alignment() const
Definition: DatabaseField.h:134
DatabaseField(const String &fieldName, int fieldColumn, int fieldType, VariantDataType dataType, int fieldLength, int fieldScale=4)
void setDataSize(size_t sz)
Sets the internal data size.
Definition: DatabaseField.h:81
void setFieldType(int fieldType, int fieldLength, int fieldScale)
Definition: DatabaseField.h:154
String displayFormat() const
Definition: DatabaseField.h:117
void checkSize(size_t sz)
Checks the internal buffer size.
uint32_t fieldSize() const
Definition: DatabaseField.h:108
void displayFormat(const String &format)
Definition: DatabaseField.h:125
int fieldType() const
Definition: DatabaseField.h:99
int fieldColumn() const
Definition: DatabaseField.h:90
void alignment(int al)
Definition: DatabaseField.h:142
VariantDataType
Definition: VariantData.h:44