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 {
19 {
20 public:
21 UUID() noexcept;
22 UUID(const String &str) noexcept;
23
24 UUID &operator=(const String &str) noexcept;
25
26 bool operator==(const UUID &other) noexcept;
27 bool operator!=(const UUID &other) noexcept;
28 operator String() const;
29 operator ByteBuf() const noexcept;
30
31 inline operator bool() const noexcept { return m_good; }
32
33 int GetLastError() const noexcept;
34
35 String ToString() const;
36
37 private:
38 aws_uuid m_uuid;
39 bool m_good;
40 };
41 } // namespace Crt
42} // namespace Aws
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: UUID.h:19
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:665
bool operator!=(const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
Definition: StringView.h:690
Definition: Api.h:14