summaryrefslogtreecommitdiff
path: root/src/mbgl/style/source.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-15 14:46:03 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-16 13:27:15 -0700
commit9d6b50828e2cbce2d0e8a9611b1dccad5123a4bd (patch)
tree6a4098964f7c07322ab18afda68a41722cf17393 /src/mbgl/style/source.cpp
parent900568cfb0b84a298395f4d84488fd9323552c63 (diff)
downloadqtlocation-mapboxgl-9d6b50828e2cbce2d0e8a9611b1dccad5123a4bd.tar.gz
[core] Runtime source API: part 2
Diffstat (limited to 'src/mbgl/style/source.cpp')
-rw-r--r--src/mbgl/style/source.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mbgl/style/source.cpp b/src/mbgl/style/source.cpp
new file mode 100644
index 0000000000..4c83a3ce0e
--- /dev/null
+++ b/src/mbgl/style/source.cpp
@@ -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