Open florian-vuillemot opened 7 years ago
Interface for loading shared lib on windows and linux. The interface must respect:
class IShared; bool init(); template std::unique_ptr create(std::string const &interfaceToLoad) const template bool remove(std::unique_ptr) const
Class name: CrossShared
Info: Init method search in the config file the filename of plugin. Plugin file contain each interface name with the file containing object to load. Create method search in the config the interface name, load file corresponding and return object.
Doc: https://stackoverflow.com/questions/496664/c-dynamic-shared-library-on-linux https://msdn.microsoft.com/en-us/library/windows/desktop/ms686923(v=vs.85).aspx
Interface for loading shared lib on windows and linux. The interface must respect:
class IShared; bool init(); template
std::unique_ptr create(std::string const &interfaceToLoad) const
template
bool remove(std::unique_ptr) const
Class name: CrossShared
Info: Init method search in the config file the filename of plugin. Plugin file contain each interface name with the file containing object to load. Create method search in the config the interface name, load file corresponding and return object.
Doc: https://stackoverflow.com/questions/496664/c-dynamic-shared-library-on-linux https://msdn.microsoft.com/en-us/library/windows/desktop/ms686923(v=vs.85).aspx