diff --git a/docs/annotated.html b/docs/annotated.html index a5b4441..c0ef01a 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -24,6 +24,7 @@
mastodonpp  0.5.5
+
C++ wrapper for the Mastodon and Pleroma APIs.
diff --git a/docs/api_8hpp_source.html b/docs/api_8hpp_source.html index 126e5aa..78d3bec 100644 --- a/docs/api_8hpp_source.html +++ b/docs/api_8hpp_source.html @@ -24,6 +24,7 @@
mastodonpp  0.5.5
+
C++ wrapper for the Mastodon and Pleroma APIs.
@@ -93,7 +94,7 @@ $(function() {
21 #include <string_view>
22 #include <variant>
23 
-
24 namespace mastodonpp
+
24 namespace mastodonpp
25 {
26 
27 using std::map;
@@ -342,35 +343,34 @@ $(function() {
316 
317  };
318 
-
325  using endpoint_type = variant<v1,v2,oauth,other,pleroma>;
+
325  using endpoint_type = variant<v1, v2, oauth, other, pleroma>;
326 
-
335  explicit API(const endpoint_type &endpoint);
+
335  explicit API(const endpoint_type &endpoint);
336 
-
342  [[nodiscard]]
-
343  inline string_view to_string_view() const
-
344  {
-
345  return _endpoint_map.at(_endpoint);
-
346  }
-
347 
-
348 private:
-
349  const endpoint_type _endpoint;
-
350  static const map<endpoint_type,string_view> _endpoint_map;
-
351 };
-
352 
-
353 } // namespace mastodonpp
-
354 
-
355 #endif // MASTODONPP_API_HPP
+
342  [[nodiscard]] inline string_view to_string_view() const
+
343  {
+
344  return _endpoint_map.at(_endpoint);
+
345  }
+
346 
+
347 private:
+
348  const endpoint_type _endpoint;
+
349  static const map<endpoint_type, string_view> _endpoint_map;
+
350 };
+
351 
+
352 } // namespace mastodonpp
+
353 
+
354 #endif // MASTODONPP_API_HPP
mastodonpp::API::v2
v2
An enumeration of all v2 API endpoints.
Definition: api.hpp:211
mastodonpp::API::oauth
oauth
An enumeration of all oauth API endpoints.
Definition: api.hpp:223
-
mastodonpp::API::to_string_view
string_view to_string_view() const
Convert endpoint_type to std::string_view.
Definition: api.hpp:343
-
mastodonpp
C++ wrapper for the Mastodon API.
Definition: api.cpp:19
+
mastodonpp::API::to_string_view
string_view to_string_view() const
Convert endpoint_type to std::string_view.
Definition: api.hpp:342
+
mastodonpp
C++ wrapper for the Mastodon API.
Definition: api.hpp:24
mastodonpp::API
Holds API endpoints.
Definition: api.hpp:40
mastodonpp::API::pleroma
pleroma
An enumeration of all pleroma API endpoints.
Definition: api.hpp:252
+
mastodonpp::API::endpoint_type
variant< v1, v2, oauth, other, pleroma > endpoint_type
Type for endpoints. Can be API::v1, API::v2, API::oauth, API::other or API::pleroma.
Definition: api.hpp:325
mastodonpp::API::v1
v1
An enumeration of all v1 API endpoints.
Definition: api.hpp:50
mastodonpp::API::other
other
An enumeration of all other API endpoints.
Definition: api.hpp:239
mastodonpp::API::API
API(const endpoint_type &endpoint)
Constructs an API object. You should never need this.
Definition: api.cpp:22
-
mastodonpp::API::endpoint_type
variant< v1, v2, oauth, other, pleroma > endpoint_type
Type for endpoints. Can be API::v1, API::v2, API::oauth, API::other or API::pleroma.
Definition: api.hpp:325