OpenLexocad  27.0
Transaction.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Core/CoreDocument.h>
4 #include <Core/core_defines2.h>
5 
6 #include <memory>
7 
8 namespace Core
9 {
10 class TransactionP;
11 
13 {
14 public:
16 
18  void commit();
19 
20  const std::vector<Core::DocObject*>& getNewObjects() const;
21  const std::vector<Core::DocObject*>& getUpdatedObjects() const;
22  const std::vector<Core::DocObject*>& getDeletedObjects() const;
23  const std::map<Core::DocObject*, std::vector<std::string>>& getErroneousObjects() const;
24 
25 private:
26  std::unique_ptr<TransactionP> _pimpl;
27 };
28 } // namespace Core
#define CORE_EXPORT
Definition: core_defines2.h:10
Definition: Transaction.h:12
Definition: CoreDocument.h:197
Definition: Base.h:19