-struct fill_visitor : boost::static_visitor<void>
-{
- mutable std::shared_ptr<ModelAPI_AttributeInteger> myAttribute;
-
- fill_visitor(const std::shared_ptr<ModelAPI_AttributeInteger> & theAttribute)
- : myAttribute(theAttribute) {}
-
- void operator()(int theValue) const { myAttribute->setValue(theValue); }
- void operator()(const std::string & theValue) const { myAttribute->setText(theValue); }
-};
-