Development

Miscellaneous development notes for xo-unit.

Addding a Basis Unit

To add a basis unit for an existing dimension:

  1. add unit definition to the xo::qty::bu namespace in include/xo/unit/basis_unit.hpp

  2. add call to bu_store::bu_establish_abbrev() from bu_store::bu_store.

  3. add natural_unit definition to xo::qty::nu namespace in include/xo/unit/natural_unit.hpp

  4. add scaled_unit definition to xo::qty::u namespace in include/xo/unit/scaled_unit.hpp.

  5. add unit quantity to xo::qty::qty namespace in include/xo/unit/quantity.hpp

  6. add factory function to xo::qty::qty namespace in include/xo/unit/quantity.hpp