|
#include <CDatabaseField.h>

Public Member Functions | |
| CDatabaseField (const std::string fieldName, int fieldColumn, int fieldType, CVariantType dataType, int fieldLength, int fieldScale=4) | |
| bool | checkSize (uint32_t sz) |
| Checks the internal buffer size. | |
| int | fieldColumn () const |
| Reports field column number. | |
| int | fieldType () const |
| Reports database field type. | |
| uint32_t | fieldSize () const |
| Reports field size. | |
Public Attributes | |
| std::string | displayName |
| Column display name. | |
| std::string | displayFormat |
| Column display format. | |
| int | alignment |
| Column alignment. | |
| bool | visible |
| Is column visible? | |
Protected Attributes | |
| int | m_fldType |
| Native database data type. | |
| int | m_fldColumn |
| Field column number in recordset. | |
| int | m_fldSize |
| Field size. | |
| int | m_fldScale |
| Field scale, optional, for floating point fields. | |
Friends | |
| class | CQuery |
| class | CDatabase |
A special variation of CField to support database field essentials
| sptk::CDatabaseField::CDatabaseField | ( | const std::string | fieldName, | |
| int | fieldColumn, | |||
| int | fieldType, | |||
| CVariantType | dataType, | |||
| int | fieldLength, | |||
| int | fieldScale = 4 | |||
| ) |
Constructor
| fieldName | std::string, field name | |
| fieldColumn | int, field column number | |
| fieldType | int, database field type | |
| dataType | CVariantType, variant data type | |
| fieldLength | int, database field length | |
| fieldScale | int, database field scale |
| bool sptk::CDatabaseField::checkSize | ( | uint32_t | sz | ) |
Checks the internal buffer size.
The internal buffer is automatically extended to fit the required size of data
| sz | uint32_t, data size (in bytes) |