#include <DbHistoryManager.h>
Definition at line 43 of file DbHistoryManager.h.
◆ applyChanges()
Apply the changes received from OdDbHistoryManager.changes (maybe in the copied database)
- Parameters
-
changes | [in] Binary stream containing the changes |
bPreserveHandles | [in] If true then the new objects in the changes stream retain their handles, otherwise they may be translated |
clientMap | [in, optional] If present, it represents the changes in handles caused by merging server changes on a client. May be used to find erased added objects while reapplying client changes |
serverMap | [in, optional] If present, it represents the changes in handles caused by merging client changes on a server. The target handles in this map will be used for the new objects added while reapplying client changes. |
Returns the map of the newly added objects handles [handle read from the stream] -> [actual handle in the database]
◆ getChangedObjects()
Objects changed in the given revision. Array is not cleared, handles are appended to the end.
◆ getChanges()
Return the changes made in the last revisions as a portable binary stream.
- Parameters
-
revisions | [in] Number of revisions to get |
rollback | [in] If true, then these revisions are reverted in database (e.g. to be reapplied after other changes) |
◆ getLogMessage()
Additional details associated with the given revision, such as log message, timestamp, etc. Returns false if the given revision does not exist.
◆ lastSyncRevision()
OdUInt32 OdDbHistoryManager::lastSyncRevision |
( |
| ) |
|
Last version synchronized with the server.
◆ revision()
OdUInt32 OdDbHistoryManager::revision |
( |
| ) |
|
◆ setLastSyncRevision()
Set the last version synchronized with the server. (Presumably, after applying changes and resolving conflicts)
◆ setLogMessage()
Associate additional details with the given revision, such as log message, timestamp, etc. Returns false if the given revision does not exist.
◆ OdDbDatabaseImpl
friend class OdDbDatabaseImpl |
|
friend |
The documentation for this class was generated from the following file: