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