MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
client_options.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
6 namespace mbgl {
7 
11 class ClientOptions final {
12 public:
18 
20  ClientOptions& operator=(const ClientOptions& options);
21  ClientOptions& operator=(ClientOptions&& options);
22 
24 
32 
38  const std::string& name() const;
39 
47 
53  const std::string& version() const;
54 
55 private:
57 
58  class Impl;
59  std::unique_ptr<Impl> impl_;
60 };
61 
62 } // namespace mbgl
Holds values for client options.
ClientOptions & withVersion(std::string version)
Sets the client version.
const std::string & name() const
Gets the previously set (or default) client name.
const std::string & version() const
Gets the previously set (or default) client version.
ClientOptions()
Constructs a ClientOptions object with default values.
ClientOptions clone() const
ClientOptions & withName(std::string name)
Sets the client name.
ClientOptions(ClientOptions &&) noexcept
Definition: actor.hpp:15
Definition: tile_id.hpp:256