Skip to content
Snippets Groups Projects
Commit e14015a3 authored by ilor's avatar ilor
Browse files

add ParsedExpression swig wrappers for shredptr variants of set_XXX (issue #1594)

parent 6c061d1f
Branches
No related merge requests found
......@@ -66,8 +66,25 @@ namespace Wccl {
explicit ParsedExpression(const Variables& variables);
virtual ParsedExpression* clone_internal() const = 0;
};
}
%extend ParsedExpression {
void set_bool(const std::string& name, const boost::shared_ptr<const Wccl::Bool>& b) {
self->set<Wccl::Bool>(name, *b);
}
void set_tset(const std::string& name, const boost::shared_ptr<const Wccl::TSet>& b) {
self->set<Wccl::TSet>(name, *b);
}
void set_strset(const std::string& name, const boost::shared_ptr<const Wccl::StrSet>& b) {
self->set<Wccl::StrSet>(name, *b);
}
void set_position(const std::string& name, const boost::shared_ptr<const Wccl::Position>& b) {
self->set<Wccl::Position>(name, *b);
}
void set_match(const std::string& name, const boost::shared_ptr<const Wccl::Match>& b) {
self->set<Wccl::Match>(name, *b);
}
}
}
using namespace std;
using namespace Wccl;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment