CFx SDK Documentation  2020SP3
DbHistoryManager.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 #ifndef _ODDBHISTORYMANAGER_H_INCLUDED_
24 #define _ODDBHISTORYMANAGER_H_INCLUDED_
25 
26 #include "OdString.h"
27 #include "DbHandle.h"
28 #include "OdStreamBuf.h"
29 #define STL_USING_MAP
30 #include "OdaSTL.h"
31 
33 typedef std::map<OdDbHandle, OdDbHandle> OdDbHandleMap;
34 class OdDbDatabaseImpl;
35 
37 {
41 };
42 
44 {
45 public:
50 
56 
61  bool setLogMessage(OdUInt32 revision, const OdDbHistoryLogRecord& log);
62 
68 
75  OdStreamBufPtr getChanges(OdUInt32 revisions, bool rollback = false);
76 
86  OdDbHandleMap applyChanges(OdStreamBuf* changes, bool bPreserveHandles, OdDbHandleMap* clientMap = 0, OdDbHandleMap* serverMap = 0);
87 
96 private:
97  friend class OdDbDatabaseImpl;
98  OdDbHistoryManager(OdDbDatabaseImpl*);
99  OdDbDatabaseImpl* m_pImpl;
100 };
101 
102 #endif
OdString
Definition: OdString.h:95
OdDbHistoryManager::setLastSyncRevision
void setLastSyncRevision(OdUInt32)
OdTimeStamp
Definition: OdTimeStamp.h:42
OdDbHistoryManager::revision
OdUInt32 revision()
OdaSTL.h
OdDbHandleMap
std::map< OdDbHandle, OdDbHandle > OdDbHandleMap
Definition: DbHistoryManager.h:33
OdArray< OdDbHandle >
OdDbHistoryLogRecord::message
OdString message
Definition: DbHistoryManager.h:38
OdDbHistoryManager::getChangedObjects
void getChangedObjects(OdUInt32 revision, OdDbHandleArray &ids)
OdDbHandleArray
OdArray< OdDbHandle > OdDbHandleArray
Definition: DbHistoryManager.h:32
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdDbHistoryManager::lastSyncRevision
OdUInt32 lastSyncRevision()
OdStreamBuf.h
OdString.h
OdDbHistoryManager::getChanges
OdStreamBufPtr getChanges(OdUInt32 revisions, bool rollback=false)
OdSmartPtr< OdStreamBuf >
OdDbHistoryLogRecord
Definition: DbHistoryManager.h:37
OdDbHistoryLogRecord::author
OdString author
Definition: DbHistoryManager.h:40
OdDbHistoryManager
Definition: DbHistoryManager.h:44
OdDbHistoryLogRecord::timestamp
OdTimeStamp timestamp
Definition: DbHistoryManager.h:39
DbHandle.h
OdStreamBuf
Definition: OdStreamBuf.h:67
OdDbHistoryManager::setLogMessage
bool setLogMessage(OdUInt32 revision, const OdDbHistoryLogRecord &log)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbHistoryManager::applyChanges
OdDbHandleMap applyChanges(OdStreamBuf *changes, bool bPreserveHandles, OdDbHandleMap *clientMap=0, OdDbHandleMap *serverMap=0)
OdDbHistoryManager::getLogMessage
bool getLogMessage(OdUInt32 revision, OdDbHistoryLogRecord &log)