32 Alto::Description::Description(
const Element &el):
41 Alto::Description::Description(
const Element &el,
const Path &imagename):
46 Element sel = PushBackElement(
"MesurementUnit");
48 sel = PushBackElement(
"sourceImageInformation");
63 Element e = GetFirstChildElement(
"MeasurementUnit");
69 munit = MeasurementUnit::Pixel;
70 else if (mu ==
"mm10")
71 munit = MeasurementUnit::MM;
72 else if (mu ==
"inch1200")
73 munit = MeasurementUnit::Inch;
86 Element e = GetFirstChildElement(
"sourceImageInformation");
StringUTF8 & ToLower()
Converts the string to lowercase.
Text PushBackText(const StringUTF8 &text, bool cdata=false)
Adds a text at the end of the children list.
Element GetFirstChildElement(const StringUTF8 &name="")
Gets the first child element.
bool IsEmpty() const noexcept
Checks if the string is empty.
A convenience class for file paths.
StringUTF8 GetFirstChildText()
Gets the first child as text.
A character string class.
A class to store an optional value.
Element PushBackElement(const StringUTF8 &name)
Adds an element at the end of the children list.
Invalid argument error (e.g.: nullptr pointer)