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

Because I want pretty much an event system out of this. Pretty much, accessing sensor values or motor directions when needed. Then destroyed, once accessed.