jeudi 31 octobre 2019

C++ - proper way to map objects (like strings) to member functions in table

I'm processing events defined by a 3rd party API. The events are identified by string identifiers i.e. "EventABC"

I need to map these (string) events in a table to member-functions of an object.

QUESTION

What's the safest and cleanest way to do this?

Aucun commentaire:

Enregistrer un commentaire