| | |
| | | #include <cstddef> |
| | | #include <string> |
| | | #include <vector> |
| | | #include <licensecc/datatypes.h> |
| | | #include <licensecc_properties.h> |
| | | |
| | | #include "../base/base.h" |
| | | #include "../api/datatypes.h" |
| | | #include "LocatorStrategy.hpp" |
| | | |
| | | namespace license { |
| | |
| | | |
| | | class LocatorFactory { |
| | | private: |
| | | static bool find_license_near_moduleb; |
| | | static bool find_license_with_env_varb; |
| | | inline LocatorFactory() { |
| | | } |
| | | inline ~LocatorFactory() { |
| | | } |
| | | public: |
| | | |
| | | static FUNCTION_RETURN get_active_strategies( |
| | | std::vector<std::unique_ptr<LocatorStrategy>> &strategiesOut, |
| | | const LicenseLocation *locationHint); |
| | | |
| | | static void find_license_near_module(bool enable) { find_license_near_moduleb = enable; } |
| | | static void find_license_with_env_var(bool enable) { find_license_with_env_varb = enable; } |
| | | }; |
| | | |
| | | } |