MapLibre Native Core
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Typedefs
a
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerations
a
b
c
e
f
h
i
k
l
m
n
o
r
s
t
v
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Related Functions
a
b
e
i
m
o
s
t
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
resource_transform.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mbgl/storage/resource.hpp
>
4
5
#include <functional>
6
#include <string>
7
8
namespace
mbgl
{
9
10
class
ResourceTransform
{
11
public
:
12
using
FinishedCallback
= std::function<void(
const
std::string
&)>;
13
using
TransformCallback
= std::function<void(
Resource::Kind
kind,
const
std::string
& url,
FinishedCallback
)>;
14
15
ResourceTransform
(
TransformCallback
= {});
16
void
transform
(
Resource::Kind
,
const
std::string
& url,
FinishedCallback
);
17
explicit
operator
bool()
const
{
return
bool(transformCallback); }
18
19
private
:
20
TransformCallback
transformCallback;
21
};
22
23
}
// namespace mbgl
mbgl::ResourceTransform
Definition:
resource_transform.hpp:10
mbgl::ResourceTransform::FinishedCallback
std::function< void(const std::string &)> FinishedCallback
Definition:
resource_transform.hpp:12
mbgl::ResourceTransform::transform
void transform(Resource::Kind, const std::string &url, FinishedCallback)
mbgl::ResourceTransform::TransformCallback
std::function< void(Resource::Kind kind, const std::string &url, FinishedCallback)> TransformCallback
Definition:
resource_transform.hpp:13
mbgl::ResourceTransform::ResourceTransform
ResourceTransform(TransformCallback={})
mbgl::Resource::Kind
Kind
Definition:
resource.hpp:15
mbgl::style::expression::dsl::string
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
mbgl
Definition:
actor.hpp:15
resource.hpp
include
mbgl
storage
resource_transform.hpp
MapLibre website
|
GitHub repository