AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Enumerations | Functions
DeviceCategory.h File Reference
#include <ostream>
#include <string>
Include dependency graph for DeviceCategory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  DeviceCategory {
  DeviceCategory::REMOTE_CONTROL, DeviceCategory::GADGET, DeviceCategory::AUDIO_VIDEO, DeviceCategory::PHONE,
  DeviceCategory::OTHER, DeviceCategory::UNKNOWN
}
 

Functions

std::string deviceCategoryToString (const DeviceCategory &category)
 
DeviceCategory stringToDeviceCategory (const std::string &category)
 
std::ostream & operator<< (std::ostream &stream, const DeviceCategory category)
 

Enumeration Type Documentation

◆ DeviceCategory

enum DeviceCategory
strong

Represent the paired device category.

Enumerator
REMOTE_CONTROL 
GADGET 
AUDIO_VIDEO 
PHONE 
OTHER 
UNKNOWN 

Function Documentation

◆ deviceCategoryToString()

std::string deviceCategoryToString ( const DeviceCategory category)
inline

Converts the DeviceCategory enum to a string.

Parameters
TheDeviceCategory to convert.
Returns
A string representation of the DeviceCategory.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const DeviceCategory  category 
)
inline

Overload for the DeviceCategory enum. This will write the DeviceCategory as a string to the provided stream.

Parameters
Anostream to send the DeviceCategory as a string.
TheDeviceCategory to convert.
Returns
The stream.

◆ stringToDeviceCategory()

DeviceCategory stringToDeviceCategory ( const std::string &  category)
inline

Converts the string to DeviceCategory enum.

Parameters
Astring representation of the DeviceCategory.
Returns
The DeviceCategory.

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0