21 struct ISettingsProvider;
45 virtual bool write(
const void* data,
size_t size) = 0;
53 virtual bool read(
void* data,
size_t size) = 0;
149 default:
return "Unknown error";
164 virtual void clear() noexcept = 0;
173 virtual IRefCounted* getParentObject()
const noexcept = 0;
Error during archive writing,.
virtual bool write(const void *data, size_t size)=0
Write bytes to archive.
virtual Result< Error > save(IArchive *archive, uint32_t flags=Default) const =0
Save object to archive.
Input archive is nullptr.
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
virtual Result< Error > load(IArchive *archive, uint32_t flags=Default)=0
Load object from archive.
Error during archive reading,.
Serializable object interface.
Definition: IObject.h:68
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual void getSize(Sizer &sizer, uint32_t flags=Default) const noexcept=0
Estimate size of this object binary data.
Default serialization mode.
Definition: IObject.h:91
virtual void setSizeHint(size_t hint)
Set size hint.
Definition: IObject.h:59
Error
Serialization nerror codes.
Definition: IObject.h:73
Flags
Serialization flags.
Definition: IObject.h:88
Omit object signature.
Definition: IObject.h:100
Data storage object interface helper.
Definition: IObject.h:157
Archive interface.
Definition: IObject.h:37
virtual bool read(void *data, size_t size)=0
Read bytes from archive.
Helper entity to measure size of dynamic objects in memory.
Definition: Sizer.h:10
Reference counted object interface.