21 #ifndef mia_2d_SegPoint_hh
22 #define mia_2d_SegPoint_hh
68 void write(xmlpp::Node& node)
const;
88 auto attr = elm.get_attribute(key);
91 throw create_exception<std::runtime_error>( elm.get_name(),
":required attribute '", key,
"' not found");
97 throw create_exception<std::runtime_error>( elm.get_name(),
":attribute '", key,
"' has bogus value '",
98 attr->get_value(),
"'");
102 void read_attribute_from_node(
const xmlpp::Element& elm,
const std::string& key,
bool& out_value,
bool required =
false);