29#include <sptk5/Buffer.h>
30#include <sptk5/DateTime.h>
31#include <sptk5/Variant.h>
32#include <sptk5/xdoc/Node.h>
86 ~Field() noexcept override = default;
225 void exportTo(
const xdoc::SNode& node,
bool compactXmlMode,
bool detailedInfo =
false,
bool nullLargeData =
false)
const;
227 String displayName()
const
229 return m_displayName;
232 void displayName(
const String& name)
234 m_displayName = name;
238 virtual String doubleDataToString()
const;
243 String m_displayName;
245 String epochDataToDateTimeString()
const;
248using SField = std::shared_ptr<Field>;
size_t bytes() const
Definition: BufferStorage.h:213
uint8_t * data()
Definition: BufferStorage.h:106
Definition: DateTime.h:86
Definition: FieldList.h:50
Field & operator=(DateTime value) override
Definition: Field.h:185
Field & operator=(const Field &other)=default
Field & operator=(bool value) override
Definition: Field.h:131
Field & operator=(int32_t value) override
Definition: Field.h:140
String asString() const override
Field(const String &name)
Field & operator=(const Buffer &value) override
Definition: Field.h:203
Field(const Field &other)=default
Field & operator=(double value) override
Definition: Field.h:158
Field & operator=(const uint8_t *value) override
Definition: Field.h:194
Field & operator=(const sptk::String &value) override
Definition: Field.h:176
Field & operator=(const Variant &C)
Definition: Field.h:117
Field & operator=(const char *value) override
Definition: Field.h:167
Field & operator=(Field &&other) noexcept=default
Field & operator=(int64_t value) override
Definition: Field.h:149
const String & fieldName() const
Definition: Field.h:99
Field(Field &&other) noexcept=default
void exportTo(const xdoc::SNode &node, bool compactXmlMode, bool detailedInfo=false, bool nullLargeData=false) const
Definition: Variant.h:372
@ VAR_STRING
String pointer.
@ VAR_BUFFER
Data pointer, corresponding to BLOBS in database.
unsigned flags
Field flags like alignment, etc.
Definition: Field.h:64
unsigned precision
Field precision.
Definition: Field.h:63
signed int width
Field width.
Definition: Field.h:62
bool visible
Is field visible?
Definition: Field.h:65