dcolli23 / ingreedyents

Optimizes the use of ingredients by ingredient UPC lookup
0 stars 0 forks source link

Switch Over Usage of Measurement Class to uniTypes Types #44

Open dcolli23 opened 4 years ago

dcolli23 commented 4 years ago

Description

I've done some work on some type definitions for units in C++ (adapted from someone else's write up on the matter) and now I need to switch over to using that instead of my previous Measurement class.

dcolli23 commented 4 years ago

I'm not quite sure the best way to do this. At the root of the problem, I need to store at least the individual nutrients' amount per serving size. Now, I could adapt the Measurement class to contain serving size information for each nutrient, but that leads to extremely redundant information (where I could store this just once per ingredient).

Right now I'm leaning towards just storing the serving size once (where serving size is also a uniTypes type.