aws-crt-cpp
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
Aws::Crt Namespace Reference

Namespaces

 Auth
 
 Crypto
 
 Http
 
 Io
 
 Mqtt
 

Classes

class  ApiHandle
 
class  DateTime
 
class  JsonObject
 
class  JsonView
 
class  Optional
 
class  StlAllocator
 
class  UUID
 

Typedefs

using Allocator = aws_allocator
 
using ByteBuf = aws_byte_buf
 
using ByteCursor = aws_byte_cursor
 
using String = std::basic_string< char, std::char_traits< char >, StlAllocator< char > >
 
using StringStream = std::basic_stringstream< char, std::char_traits< char >, StlAllocator< char > >
 
template<typename K , typename V >
using Map = std::map< K, V, std::less< K >, StlAllocator< std::pair< const K, V > >>
 
template<typename K , typename V >
using UnorderedMap = std::unordered_map< K, V, std::hash< K >, std::equal_to< K >, StlAllocator< std::pair< const K, V > >>
 
template<typename K , typename V >
using MultiMap = std::multimap< K, V, std::less< K >, StlAllocator< std::pair< const K, V > >>
 
template<typename T >
using Vector = std::vector< T, StlAllocator< T > >
 
template<typename T >
using List = std::list< T, StlAllocator< T > >
 
template<typename T >
using ScopedResource = std::unique_ptr< T, std::function< void(T *)> >
 

Enumerations

enum  LogLevel {
  LogLevel::None = AWS_LL_NONE, LogLevel::Fatal = AWS_LL_FATAL, LogLevel::Error = AWS_LL_ERROR, LogLevel::Warn = AWS_LL_WARN,
  LogLevel::Info = AWS_LL_INFO, LogLevel::Debug = AWS_LL_DEBUG, LogLevel::Trace = AWS_LL_TRACE, LogLevel::Count
}
 
enum  DateFormat { DateFormat::RFC822 = AWS_DATE_FORMAT_RFC822, DateFormat::ISO_8601 = AWS_DATE_FORMAT_ISO_8601, DateFormat::AutoDetect = AWS_DATE_FORMAT_AUTO_DETECT }
 
enum  Month {
  Month::January = AWS_DATE_MONTH_JANUARY, Month::February = AWS_DATE_MONTH_FEBRUARY, Month::March = AWS_DATE_MONTH_MARCH, Month::April = AWS_DATE_MONTH_APRIL,
  Month::May = AWS_DATE_MONTH_MAY, Month::June = AWS_DATE_MONTH_JUNE, Month::July = AWS_DATE_MONTH_JULY, Month::August = AWS_DATE_MONTH_AUGUST,
  Month::September = AWS_DATE_MONTH_SEPTEMBER, Month::October = AWS_DATE_MONTH_OCTOBER, Month::November = AWS_DATE_MONTH_NOVEMBER, Month::December = AWS_DATE_MONTH_DECEMBER
}
 
enum  DayOfWeek {
  DayOfWeek::Sunday = AWS_DATE_DAY_OF_WEEK_SUNDAY, DayOfWeek::Monday = AWS_DATE_DAY_OF_WEEK_MONDAY, DayOfWeek::Tuesday = AWS_DATE_DAY_OF_WEEK_TUESDAY, DayOfWeek::Wednesday = AWS_DATE_DAY_OF_WEEK_WEDNESDAY,
  DayOfWeek::Thursday = AWS_DATE_DAY_OF_WEEK_THURSDAY, DayOfWeek::Friday = AWS_DATE_DAY_OF_WEEK_FRIDAY, DayOfWeek::Saturday = AWS_DATE_DAY_OF_WEEK_SATURDAY
}
 

Functions

AWS_CRT_CPP_API const char * ErrorDebugString (int error) noexcept
 
AWS_CRT_CPP_API int LastError () noexcept
 
AWS_CRT_CPP_API int LastErrorOrUnknown () noexcept
 
size_t AWS_CRT_CPP_API HashString (const char *str) noexcept
 
AWS_CRT_CPP_API AllocatorDefaultAllocator () noexcept
 
AWS_CRT_CPP_API ByteBuf ByteBufFromCString (const char *str) noexcept
 
AWS_CRT_CPP_API ByteBuf ByteBufFromEmptyArray (const uint8_t *array, size_t len) noexcept
 
AWS_CRT_CPP_API ByteBuf ByteBufFromArray (const uint8_t *array, size_t capacity) noexcept
 
AWS_CRT_CPP_API ByteBuf ByteBufNewCopy (Allocator *alloc, const uint8_t *array, size_t len)
 
AWS_CRT_CPP_API void ByteBufDelete (ByteBuf &)
 
AWS_CRT_CPP_API ByteCursor ByteCursorFromCString (const char *str) noexcept
 
AWS_CRT_CPP_API ByteCursor ByteCursorFromByteBuf (const ByteBuf &) noexcept
 
AWS_CRT_CPP_API ByteCursor ByteCursorFromArray (const uint8_t *array, size_t len) noexcept
 
AWS_CRT_CPP_API Vector< uint8_t > Base64Decode (const String &decode)
 
AWS_CRT_CPP_API String Base64Encode (const Vector< uint8_t > &encode)
 
template<typename T >
void Delete (T *t, Allocator *allocator)
 
template<typename T , typename... Args>
T * New (Allocator *allocator, Args &&... args)
 
template<typename T , typename... Args>
std::shared_ptr< T > MakeShared (Allocator *allocator, Args &&... args)
 

Variables

Allocatorg_allocator = Aws::Crt::DefaultAllocator()
 

Typedef Documentation

◆ Allocator

typedef aws_allocator Aws::Crt::Allocator

◆ ByteBuf

using Aws::Crt::ByteBuf = typedef aws_byte_buf

◆ ByteCursor

using Aws::Crt::ByteCursor = typedef aws_byte_cursor

◆ List

template<typename T >
using Aws::Crt::List = typedef std::list<T, StlAllocator<T> >

◆ Map

template<typename K , typename V >
using Aws::Crt::Map = typedef std::map<K, V, std::less<K>, StlAllocator<std::pair<const K, V> >>

◆ MultiMap

template<typename K , typename V >
using Aws::Crt::MultiMap = typedef std::multimap<K, V, std::less<K>, StlAllocator<std::pair<const K, V> >>

◆ ScopedResource

template<typename T >
using Aws::Crt::ScopedResource = typedef std::unique_ptr<T, std::function<void(T *)> >

◆ String

using Aws::Crt::String = typedef std::basic_string<char, std::char_traits<char>, StlAllocator<char> >

◆ StringStream

using Aws::Crt::StringStream = typedef std::basic_stringstream<char, std::char_traits<char>, StlAllocator<char> >

◆ UnorderedMap

template<typename K , typename V >
using Aws::Crt::UnorderedMap = typedef std::unordered_map<K, V, std::hash<K>, std::equal_to<K>, StlAllocator<std::pair<const K, V> >>

◆ Vector

template<typename T >
using Aws::Crt::Vector = typedef std::vector<T, StlAllocator<T> >

Enumeration Type Documentation

◆ DateFormat

enum Aws::Crt::DateFormat
strong
Enumerator
RFC822 
ISO_8601 
AutoDetect 

◆ DayOfWeek

enum Aws::Crt::DayOfWeek
strong
Enumerator
Sunday 
Monday 
Tuesday 
Wednesday 
Thursday 
Friday 
Saturday 

◆ LogLevel

enum Aws::Crt::LogLevel
strong
Enumerator
None 
Fatal 
Error 
Warn 
Info 
Debug 
Trace 
Count 

◆ Month

enum Aws::Crt::Month
strong
Enumerator
January 
February 
March 
April 
May 
June 
July 
August 
September 
October 
November 
December 

Function Documentation

◆ Base64Decode()

Vector< uint8_t > Aws::Crt::Base64Decode ( const String decode)

◆ Base64Encode()

String Aws::Crt::Base64Encode ( const Vector< uint8_t > &  encode)

◆ ByteBufDelete()

void Aws::Crt::ByteBufDelete ( ByteBuf buf)

◆ ByteBufFromArray()

ByteBuf Aws::Crt::ByteBufFromArray ( const uint8_t *  array,
size_t  capacity 
)
noexcept

◆ ByteBufFromCString()

ByteBuf Aws::Crt::ByteBufFromCString ( const char *  str)
noexcept

◆ ByteBufFromEmptyArray()

ByteBuf Aws::Crt::ByteBufFromEmptyArray ( const uint8_t *  array,
size_t  len 
)
noexcept

◆ ByteBufNewCopy()

ByteBuf Aws::Crt::ByteBufNewCopy ( Allocator alloc,
const uint8_t *  array,
size_t  len 
)

◆ ByteCursorFromArray()

ByteCursor Aws::Crt::ByteCursorFromArray ( const uint8_t *  array,
size_t  len 
)
noexcept

◆ ByteCursorFromByteBuf()

ByteCursor Aws::Crt::ByteCursorFromByteBuf ( const ByteBuf buf)
noexcept

◆ ByteCursorFromCString()

ByteCursor Aws::Crt::ByteCursorFromCString ( const char *  str)
noexcept

◆ DefaultAllocator()

Allocator * Aws::Crt::DefaultAllocator ( )
noexcept

◆ Delete()

template<typename T >
void Aws::Crt::Delete ( T *  t,
Allocator allocator 
)

◆ ErrorDebugString()

const char * Aws::Crt::ErrorDebugString ( int  error)
noexcept

◆ HashString()

size_t Aws::Crt::HashString ( const char *  str)
noexcept

◆ LastError()

int Aws::Crt::LastError ( )
noexcept
Returns
the value of the last aws error on the current thread. Return 0 if no aws-error raised before.

◆ LastErrorOrUnknown()

int Aws::Crt::LastErrorOrUnknown ( )
noexcept
Returns
the value of the last aws error on the current thread. Return AWS_ERROR_UNKNOWN, if no aws-error raised before.

◆ MakeShared()

template<typename T , typename... Args>
std::shared_ptr<T> Aws::Crt::MakeShared ( Allocator allocator,
Args &&...  args 
)

◆ New()

template<typename T , typename... Args>
T* Aws::Crt::New ( Allocator allocator,
Args &&...  args 
)

Variable Documentation

◆ g_allocator

Allocator * Aws::Crt::g_allocator = Aws::Crt::DefaultAllocator()