I'm working on a library, this library has multiple classes of which some of the time they are needed by the user, other times they are not needed. There are, however "core" classes and "helper" classes but the rest are what the user wants in his/hers runtime environment.
I have been recently been doing some programming in PHP and found that a specific library has an approach like this:
In the config file:
'classes' => [
'foo' => 'src/app/classes/Foo',
'bar' => 'src/app/classes/Bar',
]
Then whenever you want to call "foo" you can just use: using foo;
I'm wondering whether or not this approach is possible in C++ (obviously, different Syntax) but have a config file that loads all of required .h files that are needed so then the user does not have to include them each time?
My aim, is to have build a shell script program that will allow users to access the library methods from the terminal and pass in data.