From 78b6def7e795a1bdc37093f582db56cbdae01347 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周六, 19 10月 2019 10:10:45 +0800 Subject: [PATCH] Merge branch 'feature/code_review_and_refactor' into develop --- src/library/locate/ExternalDefinition.hpp | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/library/locate/ExternalDefinition.hpp b/src/library/locate/ExternalDefinition.hpp new file mode 100644 index 0000000..c70775a --- /dev/null +++ b/src/library/locate/ExternalDefinition.hpp @@ -0,0 +1,30 @@ +/* + * ExplicitDefinition.hpp + * + * Created on: Oct 12, 2019 + * Author: devel + */ + +#ifndef SRC_LIBRARY_LOCATE_EXTERNALDEFINITION_HPP_ +#define SRC_LIBRARY_LOCATE_EXTERNALDEFINITION_HPP_ + +#include "LocatorStrategy.hpp" + +namespace license { +namespace locate { + +class ExternalDefinition: public LocatorStrategy { +private: + const LicenseLocation* m_location; + bool licenseDataIsBase64 = false; +public: + ExternalDefinition(const LicenseLocation* location); + virtual const std::vector<std::string> license_locations(EventRegistry& eventRegistry); + virtual const std::string retrieve_license_content(const std::string &licenseLocation) const; + virtual ~ExternalDefinition(); +}; + +} /* namespace locate */ +} /* namespace license */ + +#endif /* SRC_LIBRARY_LOCATE_EXTERNALDEFINITION_HPP_ */ -- Gitblit v1.9.1