62 auto posComma = val.find(
',');
63 if (posComma == std::string::npos) {
65 <<
"expected two coordinate dimensions but found only one in " << val;
68 if (val.find(
',', posComma + 1) != std::string::npos) {
70 <<
"found more than the expected two coordinate dimensions in " << val;
#define R__ERROR_HERE(GROUP)
void SetFromAttrString(const std::string &val, const std::string &name)
Initialize a RPadLength from a style string.
std::string ToAttributeString(const RColor &val)
Return a std::string representation of a RColor, suitable as input to ColorFromString().
RColor FromAttributeString(const std::string &str, const std::string &name, RColor *)
Initialize a RColor from a string value.
void SetFromAttrString(const std::string &val, const std::string &name)
Initialize a RPadHorizVert from a style string.
RPadLength fHoriz
Horizontal position.
RPadLength fVert
Vertical position.
An extent / size (horizontal and vertical) in a RPad.