CFx SDK Documentation  2022 SP0
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
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
std::map< OdDbHandle, OdDbHandle > OdDbHandleMap
OdArray< OdDbHandle > OdDbHandleArray
unsigned int OdUInt32
void setLastSyncRevision(OdUInt32)
void getChangedObjects(OdUInt32 revision, OdDbHandleArray &ids)
OdDbHandleMap applyChanges(OdStreamBuf *changes, bool bPreserveHandles, OdDbHandleMap *clientMap=0, OdDbHandleMap *serverMap=0)
bool getLogMessage(OdUInt32 revision, OdDbHistoryLogRecord &log)
bool setLogMessage(OdUInt32 revision, const OdDbHistoryLogRecord &log)
OdStreamBufPtr getChanges(OdUInt32 revisions, bool rollback=false)
OdUInt32 lastSyncRevision()
OdUInt32 revision()