Quote:
Originally Posted by
kristinu
I do need to separate them into some folders (although not too many) instead of having all the code in just one directory. I would want the .ccp and .h files in the same location as well, rather than having the .h in a separate headers folder.
I currently have one makefile.
My only problem is where to put the base classes for the interpolation.
Base headers, at least, should be somewhere generic -- everything needs them. Put them in ./include/, or just leave them in your root folder.
Really though, generic headers don't belong with your source, that's
why they're separate files -- for the convenience of other code using it. They need to be easy to find, and traditionally get lumped in one include dir.
If there's bits in your headers that don't make sense for everything to include, separate them out into private header files for your classes, leaving the generic bits to go into ./include/. Only the bits needed to use the class belong in ./include/, things to help define it should be internal.
Of course this all goes out the window if you use templates. Then it's real hard to have an opaque anything.