Start here to prepare an 'objects message'. You must add at least one object and then you can send the message using SyncClient::send() or SyncServer::send(). More...
#include <objectbox-sync.hpp>
Public Member Functions | |
| SyncObjectsMessageBuilder () | |
| SyncObjectsMessageBuilder (const std::string &topic) | |
| SyncObjectsMessageBuilder (const void *topic, size_t topicSize) | |
| SyncObjectsMessageBuilder (SyncObjectsMessageBuilder &&source) noexcept | |
| SyncObjectsMessageBuilder (const SyncObjectsMessageBuilder &)=delete | |
| Can't be copied, single owner of C resources is required (to avoid double-free during destruction) | |
| virtual | ~SyncObjectsMessageBuilder () |
| void | add (OBXSyncObjectType type, const void *data, size_t size, uint64_t id=0) |
| Adds an object to the given message (builder). | |
| void | add (const std::string &object, uint64_t id=0) |
| Adds a string object to the given message (builder). | |
Start here to prepare an 'objects message'. You must add at least one object and then you can send the message using SyncClient::send() or SyncServer::send().
|
inline |
|
inlineexplicit |
| topic | - application-specific message qualifier |
|
inlineexplicit |
| topic | - application-specific message qualifier (may be NULL), usually a string but can also be binary |
|
inlinenoexcept |
|
delete |
Can't be copied, single owner of C resources is required (to avoid double-free during destruction)
|
inlinevirtual |
|
inline |
Adds a string object to the given message (builder).
| id | an optional (pass 0 if you don't need it) value that the application can use identify the object |
|
inline |
Adds an object to the given message (builder).
| id | an optional (pass 0 if you don't need it) value that the application can use identify the object |