So, I have an API that I need to implement in an existing structure. This API controls the interaction with an external server. I have been charged that you can create an easily repeatable “template” so that if people work on new projects in this structure, they have a simple solution for integrating the API.
My first idea was to create a class for your "main" frame class, to extend it, provide all the virtual functions needed to interact with the API. However, my boss vetoed this because the existing structure is "inheritance heavy" and he wants to not add to the frenzy. I obviously cannot encapsulate my API, because this is what the API itself should do, and this may hide functionality.
In short, futures developers copy and paste my example, what should I do?
source
share