AWS IoT Device SDK C++ v2  1.34.0
AWS IoT Device SDK C++ v2
UUID.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include <aws/crt/StlAllocator.h>
7 #include <aws/crt/Types.h>
8 
9 #include <aws/common/uuid.h>
10 
11 namespace Aws
12 {
13  namespace Crt
14  {
18  class AWS_CRT_CPP_API UUID final
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
Aws::Crt::operator==
bool operator==(const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
Definition: StringView.h:666
StlAllocator.h
Aws::Crt::UUID
Definition: UUID.h:19
Aws::Crt::operator!=
bool operator!=(const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
Definition: StringView.h:691
Types.h
Aws::Crt::ByteBuf
aws_byte_buf ByteBuf
Definition: Types.h:30
AWS_CRT_CPP_API
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Aws
Definition: Allocator.h:11
Aws::Iotjobs::JobStatusMarshaller::ToString
AWS_IOTJOBS_API const char * ToString(JobStatus val)
Definition: JobStatus.cpp:29
Aws::Crt::String
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:45