Publish only API objects in the installed header files
|Assignee:||Andreas Huggel||% Done:|
It is a basic rule of library design that classes, functions and variables which are only used internally and are not considered part of the library's API should not be present in the installed header files.
They should be moved to new include files, which are not installed.
Consider introducing a new namespace too, e.g., a nested namespace Exiv2::Internal for these objects. Exiv2 cpp files can always start with a 'using namespace Exiv2::Internal' for convenience.
#1 Updated by Gilles Caulier over 9 years ago
We ned to use d private internal class to improve binary compatibilty everywhere. I use this way everywehre in my code (digikam, kipi-plugins and all shared libs relevant)
Other advantage is to have a code which compile faster duing a less of header included everywhere.
If you need help with this task, let's me hear.