[core] Runtime source API: part 2
This commit is contained in:
18
src/mbgl/style/source.cpp
Normal file
18
src/mbgl/style/source.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <mbgl/style/source.hpp>
|
||||
#include <mbgl/style/source_impl.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace style {
|
||||
|
||||
Source::Source(SourceType type_, std::unique_ptr<Impl> baseImpl_)
|
||||
: baseImpl(std::move(baseImpl_)), type(type_) {
|
||||
}
|
||||
|
||||
Source::~Source() = default;
|
||||
|
||||
const std::string& Source::getID() const {
|
||||
return baseImpl->id;
|
||||
}
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user