I have a base class EventArgs. This leads to many, many specializations that represent event arguments for a particular type of event. Users of these events may need several or more of these argument classes.
My question is whether you would provide a header file for each type (e.g. 50+ header files for different ones), would you try to group them in families and have a common header file for them, or would you throw caution into the window and nest them into one simple header file that you can simply include?
Another approach might be to have 50 header files, and then I could introduce some “family” header files that included specific ones. Not sure about naming conventions for such things, so obviously there is where.
I know that there cannot be a hard and fast rule, but it is interesting what other developers did when they wrote a lot of small classes.
Thanks in advance.
source
share