21 #ifndef CO_SERIALIZABLE_H 22 #define CO_SERIALIZABLE_H 24 #include <co/object.h> 28 namespace detail {
class Serializable; }
40 CO_API uint64_t getDirty()
const;
43 CO_API
bool isDirty()
const override;
46 CO_API
virtual bool isDirty(
const uint64_t dirtyBits )
const;
49 CO_API uint128_t commit(
const uint32_t incarnation = CO_COMMIT_NEXT )
60 CO_API Serializable(
const Serializable& );
63 CO_API
virtual ~Serializable();
66 Serializable& operator = (
const Serializable& from )
104 DIRTY_ALL = 0xFFFFFFFFFFFFFFFFull
108 CO_API
virtual void setDirty(
const uint64_t bits );
111 CO_API
virtual void unsetDirty(
const uint64_t bits );
117 CO_API
void notifyAttached()
override;
128 detail::Serializable*
const _impl;
129 friend class detail::Serializable;
132 #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
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.