HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_WebHelpers Namespace Reference

Classes

struct  ParamDetail
 

Functions

template<class T >
convertArrayValue (const ParamDetail &detail)
 
template<class... Args, std::size_t... Idxs>
std::tuple< Args...> convertArrayToTupleImpl (const UT_Array< ParamDetail > &arr, std::index_sequence< Idxs...>)
 
template<class... Args>
std::tuple< Args...> convertArrayToTuple (const UT_Array< ParamDetail > &arr)
 
template<class T , _NET_REQUIRES(!_NET_IS_STRING(T)&&!_NET_IS_INTEGRAL(T)) >
bool netConvertDefault (T &value, const UT_StringRef &def_value)
 
template<class T , _NET_REQUIRES(_NET_IS_STRING(T)&&!_NET_IS_INTEGRAL(T)) >
bool netConvertDefault (UT_StringHolder &value, const UT_StringRef &def_value)
 
template<class T >
convertJSONValue (NET_WebAPIHandler::ParamArray &params, UT_JSONValueArray *args, UT_JSONValueMap *kwargs, std::size_t idx)
 
template<class... Args, std::size_t... Idxs>
std::tuple< Args...> convertJSONArrayToTupleImpl (NET_WebAPIHandler::ParamArray &params, UT_JSONValueArray *args, UT_JSONValueMap *kwargs, std::index_sequence< Idxs...>)
 
template<class... Args, std::size_t Size = sizeof...(Args)>
auto convertJSONArrayToTuple (NET_WebAPIHandler::ParamArray &params, UT_JSONValueArray *args, UT_JSONValueMap *kwargs) -> typename std::enable_if_t< Size==0
 
template<class F , class ReqObj , class Tuple , std::size_t... I>
decltype(auto) applyImpl (F &&f, ReqObj &req, Tuple &&t, std::index_sequence< I...>)
 
template<class F , class ReqObj , class Tuple >
decltype(auto) applyTuple (F &&f, ReqObj &req, Tuple &&tuple)
 

Variables

void kwargs
 

Function Documentation

template<class F , class ReqObj , class Tuple , std::size_t... I>
decltype(auto) NET_WebHelpers::applyImpl ( F &&  f,
ReqObj &  req,
Tuple &&  t,
std::index_sequence< I...>   
)

Definition at line 324 of file NET_WebAPIHandler.h.

template<class F , class ReqObj , class Tuple >
decltype(auto) NET_WebHelpers::applyTuple ( F &&  f,
ReqObj &  req,
Tuple &&  tuple 
)

Definition at line 331 of file NET_WebAPIHandler.h.

template<class... Args>
std::tuple<Args...> NET_WebHelpers::convertArrayToTuple ( const UT_Array< ParamDetail > &  arr)

Definition at line 182 of file NET_WebAPIHandler.h.

template<class... Args, std::size_t... Idxs>
std::tuple<Args...> NET_WebHelpers::convertArrayToTupleImpl ( const UT_Array< ParamDetail > &  arr,
std::index_sequence< Idxs...>   
)

Definition at line 172 of file NET_WebAPIHandler.h.

template<class T >
T NET_WebHelpers::convertArrayValue ( const ParamDetail detail)

Definition at line 148 of file NET_WebAPIHandler.h.

template<class... Args, std::size_t Size = sizeof...(Args)>
auto NET_WebHelpers::convertJSONArrayToTuple ( NET_WebAPIHandler::ParamArray params,
UT_JSONValueArray args,
UT_JSONValueMap kwargs 
) -> typename std::enable_if_t<Size =
pure virtual
template<class... Args, std::size_t... Idxs>
std::tuple<Args...> NET_WebHelpers::convertJSONArrayToTupleImpl ( NET_WebAPIHandler::ParamArray params,
UT_JSONValueArray args,
UT_JSONValueMap kwargs,
std::index_sequence< Idxs...>   
)

Definition at line 284 of file NET_WebAPIHandler.h.

template<class T >
T NET_WebHelpers::convertJSONValue ( NET_WebAPIHandler::ParamArray params,
UT_JSONValueArray args,
UT_JSONValueMap kwargs,
std::size_t  idx 
)

Definition at line 223 of file NET_WebAPIHandler.h.

template<class T , _NET_REQUIRES(!_NET_IS_STRING(T)&&!_NET_IS_INTEGRAL(T)) >
bool NET_WebHelpers::netConvertDefault ( T &  value,
const UT_StringRef def_value 
)

Definition at line 200 of file NET_WebAPIHandler.h.

template<class T , _NET_REQUIRES(_NET_IS_STRING(T)&&!_NET_IS_INTEGRAL(T)) >
bool NET_WebHelpers::netConvertDefault ( UT_StringHolder value,
const UT_StringRef def_value 
)

Definition at line 207 of file NET_WebAPIHandler.h.

Variable Documentation

void NET_WebHelpers::kwargs

Definition at line 305 of file NET_WebAPIHandler.h.