AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ CodeForType()

template<typename SDS_T >
int drama::sds::CodeForType ( )

Functions which returns the SDS type of a given C type.

A specific version must be instantiated for each SDS type (in sds.cpp)

This is a simple template method which returns the SDS code type for a given argument. Only known SDS supported types are supported: bool, char, short, unsigned short, INT32, UINT32, INT64, UINT64, float and double and the equivalent SDS code type is return. Also the string representation "const std::string &" is supported, which returns the code ARG_STRING.

Template Parameters
Atype with a corresponding SDS code.
Returns
The correct SDS code type for the template parameter.