Measurements from/to string encodings.

Registered by Mike Allen

Enhancement request. Add a virtual method to the MeasurementUnit class that would enable a string to be parsed for an embedded measurement value and units. For example, a time of 5 hours, 22 minutes and 13.5 seconds might be encoded as a string containing 05:22:13.5. Alternatively, a distance of 12 feet, 4.5 inches might be encoded in a string as 12'4.5". The idea would be to allow values to be assigned to Measurement<UnitType> instances on construction, or as required, in string format.

The Measurement<UnitType>.ToString() method should also be overridden to allow measurement values to be output in whichever format the user, and/or developer, may prefer. When such values are output, the above string parsing function should be able to read them back in with a minimal loss in precision.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Review
Series goal:
None
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

Whiteboard

Need to give this some thought. Implementation will have to fit in with .NET string formatting concepts, and be as transparent to the user as possible. This is a low priority at this point.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.