Mapper  0.9.0
API documentation
OpenOrienteering::XmlStreamLiteral Namespace Reference

Local namespace for QLatin1String constants. More...

Detailed Description

Local namespace for QLatin1String constants.

This namespace collects various QLatin1String constants in xml_stream_util.h. The namespace literal cannot be used directly in the xml_stream_util.h header because it would easily lead to name conflicts in including files. However, XmlStreamLiteral can be aliased to literal locally in method definitions:

void someFuntion()
{
namespace literal = XmlStreamLiteral;
writeAttribute(literal::left, 37.0);
}
See also
literal