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);
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
void read_attribute_from_node(const xmlpp::Element &elm, const std::string &key, T &out_value, bool required=false)
a point in a 2D segmentation shape
#define NS_MIA_END
conveniance define to end the mia namespace
bool from_string(const char *s, T &result)