use optional for getters of definition and name
Sampled dimension returns optional<double> for the offset.
documentation of the SampleDimension.