AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Typedefs | Functions | Variables
SettingStringConversion.h File Reference
#include <list>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
Include dependency graph for SettingStringConversion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::settings
 

Typedefs

template<typename ValueT >
using alexaClientSDK::settings::IntegralByteType = typename std::enable_if< isIntegralByteType< ValueT >(), ValueT >::type
 
template<typename ValueT >
using alexaClientSDK::settings::EnumOrString = typename std::enable_if< isEnumOrString< ValueT >(), ValueT >::type
 
template<typename ValueT >
using alexaClientSDK::settings::StringCollection = typename std::enable_if< isStringCollection< ValueT >(), ValueT >::type
 
template<typename ValueT >
using alexaClientSDK::settings::OtherTypes = typename std::enable_if< !isEnumOrString< ValueT >() &&!isIntegralByteType< ValueT >() &&!isStringCollection< ValueT >(), ValueT >::type
 

Functions

template<typename ValueT >
static constexpr bool alexaClientSDK::settings::isIntegralByteType ()
 
template<typename ValueT , typename = IntegralByteType<ValueT>>
std::pair< bool, std::string > alexaClientSDK::settings::toSettingString (const IntegralByteType< ValueT > &value)
 
template<typename ValueT , typename = IntegralByteType<ValueT>>
std::pair< bool, ValueT > alexaClientSDK::settings::fromSettingString (const std::string &str, const IntegralByteType< ValueT > &defaultValue)
 
template<typename ValueT >
static constexpr bool alexaClientSDK::settings::isEnumOrString ()
 
template<typename ValueT , typename = EnumOrString<ValueT>>
std::pair< bool, std::string > alexaClientSDK::settings::toSettingString (const ValueT &value)
 
template<typename ValueT , typename = EnumOrString<ValueT>>
std::pair< bool, ValueT > alexaClientSDK::settings::fromSettingString (const std::string &str, const ValueT &defaultValue)
 
template<typename ValueT >
static constexpr bool alexaClientSDK::settings::isStringCollection ()
 
template<typename ValueT , StringCollection< ValueT > * = nullptr>
std::pair< bool, std::string > alexaClientSDK::settings::toSettingString (const StringCollection< ValueT > &value)
 
template<typename ValueT , StringCollection< ValueT > * = nullptr>
std::pair< bool, ValueT > alexaClientSDK::settings::fromSettingString (const std::string &str, const StringCollection< ValueT > &defaultValue)
 
template<typename ValueT >
std::pair< bool, std::string > alexaClientSDK::settings::toSettingString (const OtherTypes< ValueT > &value)
 
template<typename ValueT >
std::pair< bool, ValueT > alexaClientSDK::settings::fromSettingString (const std::string &str, const OtherTypes< ValueT > &defaultValue)
 

Variables

constexpr char alexaClientSDK::settings::QUOTE = '"'
 Quote used for json string values. More...
 
static const std::string alexaClientSDK::settings::EMPTY_JSON_LIST = "[]"
 

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