Added callee_filter for including/excluding messages based on receiver type (#152)
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "diagram.h"
|
||||
|
||||
#include "common/model/diagram_filter.h"
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
@@ -171,6 +173,14 @@ std::set<common::model::diagram_element::id_t> &diagram::active_participants()
|
||||
return active_participants_;
|
||||
}
|
||||
|
||||
bool diagram::should_include(
|
||||
const sequence_diagram::model::participant &p) const
|
||||
{
|
||||
return filter().should_include(p) &&
|
||||
filter().should_include(
|
||||
dynamic_cast<const common::model::source_location &>(p));
|
||||
}
|
||||
|
||||
void diagram::print() const
|
||||
{
|
||||
LOG_TRACE(" --- Participants ---");
|
||||
|
||||
Reference in New Issue
Block a user