21 #ifndef CO_SERIALIZABLE_H
22 #define CO_SERIALIZABLE_H
24 #include <co/object.h>
28 namespace detail {
class Serializable; }
45 CO_API
virtual bool isDirty()
const;
48 CO_API
virtual bool isDirty(
const uint64_t dirtyBits )
const;
51 CO_API
virtual uint128_t
commit(
const uint32_t incarnation =
102 DIRTY_ALL = 0xFFFFFFFFFFFFFFFFull
106 CO_API
virtual void setDirty(
const uint64_t bits );
109 CO_API
virtual void unsetDirty(
const uint64_t bits );
118 detail::Serializable*
const _impl;
119 friend class detail::Serializable;
130 #endif // CO_SERIALIZABLE_H
virtual CO_API ~Serializable()
Destruct the serializable.
virtual void serialize(co::DataOStream &, const uint64_t)
Worker for pack() and getInstanceData().
virtual CO_API uint128_t commit(const uint32_t incarnation=CO_COMMIT_NEXT)
Base class for distributed, inheritable objects.
virtual CO_API bool isDirty() const
CO_API uint64_t getDirty() const
virtual CO_API void notifyAttached()
virtual void deserialize(co::DataIStream &, const uint64_t)
Worker for unpack() and applyInstanceData().
ChangeType
Object change handling characteristics, see Programming Guide.
A std::istream-like input data stream for binary data.
virtual ChangeType getChangeType() const
DirtyBits
The changed parts of the serializable since the last pack().
virtual CO_API void unsetDirty(const uint64_t bits)
Remove dirty flags to clear data from distribution.
A std::ostream-like interface for object serialization.
virtual CO_API void setDirty(const uint64_t bits)
Add dirty flags to mark data for distribution.
CO_API Serializable()
Construct a new Serializable.