Kernel Design of a Flexible Software Framework for Magnetic Measurements at CERN