OpenLexocad  27.1
PostSolver.h
Go to the documentation of this file.
1 #pragma once
2 #pragma warning(disable : 4251)
3 
4 #include <Core/DocObject.h>
7 
8 
9 namespace Core
10 {
11 class LX_CORE_EXPORT PostSolver : public Core::DocObject
12 {
15 
16 public:
17  PostSolver();
18  virtual ~PostSolver();
19 
20 
22  virtual bool ignoreInGraph() const override { return true; }
23 
24  virtual bool solve(std::vector<Core::DocObject*>& newObjects,
25  std::vector<Core::DocObject*>& updatedObjects,
26  std::vector<Core::DocObject*>& deletedObjects) = 0;
27  bool mustbeSaved() const override { return true; }
28  virtual void finalize() {}
29 };
30 
31 
32 } // namespace Core
Definition: PostSolver.h:11
Definition: Base.h:12
virtual bool ignoreInGraph() const override
The object should not added to the graph.
Definition: PostSolver.h:22
virtual void finalize()
Definition: PostSolver.h:28
bool mustbeSaved() const override
Return 'true' if this object must always be saved in the file.
Definition: PostSolver.h:27
LX_NODE_HEADER()
TYPESYSTEM_HEADER()
Definition: DocObject.h:51