I'm looking to define local units specific to each instance of a class. In this specific case I need to define a unit called "ticks" that is an angle defined relative to degree_base_unit and radian_base_unit. Local unit definitions are required because I am dealing with varying physical motors that measure their position in "ticks". The number of ticks per radian is arbitrarily defined by the manufacturer, so each class needs an independent "ticks" definition for that specific device loaded by a config file at runtime (so the user is not required to recompile every time they use a new motor). Some of the pieces I need look to be there within a combination of the examples: