Linking to C++ includes, or having a Dictionary or List template?

Ok here is what I am trying to achieve. :).

I have some motors. Now, when a motor is set to a certain speed or direction. I want that value to be stored in an object. (Are templates used here?) Now once it is stored, the value needs to be accessed later as a condition for, a switch or if -statement. Now I know this can be simply done using a float as storage for the value. But I want to know, now, if there is any other way to do this? (My original thought was the attribute system I created in c# and convert it to c++. :l)

(Did I explain it well enough? :roll_eyes:)