9#include <boost/python/class.hpp>
24void setLabelFromStdString(
Label &self,
const std::string &caption,
const std::string &label) {
32 class_<Label, bases<Unit>, boost::noncopyable>(
"Label", no_init)
33 .def(
"setLabel", &setLabelFromStdString, (arg(
"self"), arg(
"caption"), arg(
"label")),
34 "Set the caption (e.g.Temperature) & label (K) on the unit")
37 (arg(
"self"), arg(
"caption"), arg(
"label")),
38 "Set the caption (e.g.Temperature) "
39 "& label (K) on the unit, See the "
A base-class for the a class that is able to return unit labels in different representations.
The base units (abstract) class.
void setLabel(const std::string &cpt, const UnitLabel &lbl=UnitLabel(""))
Set a caption and a label.
The namespace for concrete units classes.