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