aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
UUID.h
Go to the documentation of this file.
1#pragma once
7#include <aws/crt/Types.h>
8
9#include <aws/common/uuid.h>
10
11namespace Aws
12{
13 namespace Crt
14 {
16 {
17 public:
18 UUID() noexcept;
19 UUID(const String &str) noexcept;
20
21 UUID &operator=(const String &str) noexcept;
22
23 bool operator==(const UUID &other) noexcept;
24 bool operator!=(const UUID &other) noexcept;
25 operator String() const;
26 operator ByteBuf() const noexcept;
27
28 inline operator bool() const noexcept { return m_good; }
29
30 int GetLastError() const noexcept;
31
32 String ToString() const;
33
34 private:
35 aws_uuid m_uuid;
36 bool m_good;
37 };
38 } // namespace Crt
39} // namespace Aws
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: UUID.h:16
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:47
aws_byte_buf ByteBuf
Definition: Types.h:32
bool operator==(const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
Definition: StringView.h:660
bool operator!=(const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
Definition: StringView.h:685
Definition: Api.h:17