AWS SDK for C++  1.9.1
AWS SDK for C++
UUID.h
Go to the documentation of this file.
1 
6 #pragma once
7 
10 #include <aws/core/utils/Array.h>
11 
12 namespace Aws
13 {
14  namespace Utils
15  {
16  static const size_t UUID_BINARY_SIZE = 0x10;
17 
22  {
23  public:
27  UUID(const Aws::String&);
31  UUID(const unsigned char uuid[UUID_BINARY_SIZE]);
32 
36  operator Aws::String() const;
40  inline operator ByteBuffer() const { return ByteBuffer(m_uuid, sizeof(m_uuid)); }
41 
46  static UUID RandomUUID();
47 
48  private:
49  unsigned char m_uuid[UUID_BINARY_SIZE];
50  };
51  }
52 }
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::Utils::UUID::UUID
UUID(const unsigned char uuid[UUID_BINARY_SIZE])
Aws::Utils::ByteBuffer
Array< unsigned char > ByteBuffer
Definition: Array.h:222
Aws::Utils::UUID::UUID
UUID(const Aws::String &)
AWSString.h
Aws::Utils::UUID::RandomUUID
static UUID RandomUUID()
Aws::Utils::UUID_BINARY_SIZE
static const size_t UUID_BINARY_SIZE
Definition: UUID.h:16
Core_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Utils::UUID
Definition: UUID.h:22