21 #ifndef CO_SERIALIZABLE_H 22 #define CO_SERIALIZABLE_H 24 #include <co/object.h> 43 CO_API uint64_t getDirty()
const;
46 CO_API
bool isDirty()
const override;
49 CO_API
virtual bool isDirty(
const uint64_t dirtyBits)
const;
53 commit(
const uint32_t incarnation = CO_COMMIT_NEXT)
override;
63 CO_API Serializable(
const Serializable&);
66 CO_API
virtual ~Serializable();
110 DIRTY_ALL = 0xFFFFFFFFFFFFFFFFull
114 CO_API
virtual void setDirty(
const uint64_t bits);
117 CO_API
virtual void unsetDirty(
const uint64_t bits);
122 CO_API
void notifyAttached()
override;
135 detail::Serializable*
const _impl;
136 friend class detail::Serializable;
139 #endif // CO_SERIALIZABLE_H Base class for distributed, inheritable objects.
CO_API std::string serialize(const ConnectionDescriptions &)
Serialize a vector of connection descriptions to a string.
ChangeType getChangeType() const override
Serializable & operator=(const Serializable &from)
NOP assignment operator.
ChangeType
Object change handling characteristics, see Programming Guide.
A std::ostream-like interface for object serialization.
DirtyBits
The changed parts of the serializable since the last pack().
void getInstanceData(co::DataOStream &os) override
Serialize all instance information of this distributed object.
Object-oriented network library.
Object & operator=(const Object &)
NOP assignment operator.
A std::istream-like input data stream for binary data.
CO_API bool deserialize(std::string &data, ConnectionDescriptions &descriptions)
Deserialize a vector or connection descriptions from a string.