8#ifndef SEN_DB_PROPERTY_CHANGE_H
9#define SEN_DB_PROPERTY_CHANGE_H
25 SEN_COPY_MOVE(PropertyChange)
45 PropertyChange(ObjectId objectId, const
Property* property,
std::vector<uint8_t> buffer);
50 mutable
bool variantExtracted_ = false;
52 std::vector<uint8_t> buffer_;
Here we define a set of template meta-programming helpers to let the compiler take some decisions bas...
Represents a property.
Definition property.h:79
Contiguous view of elements of type T. Inspired by http://www.open-std.org/jtc1/sc22/wg21/docs/papers...
Definition span.h:34
ObjectId getObjectId() const noexcept
The ID of the object that holds the property.
~PropertyChange()=default
friend class Input
Definition property_change.h:44
const Property * getProperty() const noexcept
The meta information of the property.
Span< const uint8_t > getValueAsBuffer() const noexcept
The property value as a serialized buffer.
const Var & getValueAsVariant() const
The property value as a variant.
Definition annotation.h:20
Can hold any supported value type. Wraps std::variant to allow recursion and implements some helpers.
Definition var.h:119