diff options
| author | Brian Potchik <brian@vector35.com> | 2021-08-04 11:09:16 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-08-04 11:09:16 -0400 |
| commit | 98c2b6f32e3181a3a3462c6bd41306ff674a515b (patch) | |
| tree | 189c5e7badf84a92b44e31fb2ad3fa18a01ed601 /flowgraph.cpp | |
| parent | 754fb4d12a85cdf8c791725002c9a1e78894d8c0 (diff) | |
Add query mode to flow graph reports.
Diffstat (limited to 'flowgraph.cpp')
| -rw-r--r-- | flowgraph.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/flowgraph.cpp b/flowgraph.cpp index 48109f46..e2ebdae4 100644 --- a/flowgraph.cpp +++ b/flowgraph.cpp @@ -386,6 +386,12 @@ void FlowGraph::Show(const string& title) } +bool FlowGraph::HasUpdates() const +{ + return false; +} + + Ref<FlowGraph> FlowGraph::Update() { return nullptr; @@ -406,6 +412,15 @@ bool FlowGraph::IsOptionSet(BNFlowGraphOption option) CoreFlowGraph::CoreFlowGraph(BNFlowGraph* graph): FlowGraph(graph) { + m_queryMode = BNFlowGraphUpdateQueryMode(GetObject()); +} + + +bool CoreFlowGraph::HasUpdates() const +{ + if (m_queryMode) + return BNFlowGraphHasUpdates(GetObject()); + return false; } |
