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

◆ Get() [1/3]

template<typename T >
void drama::sds::Id::Get ( const std::string &  name,
T *  value 
) const
inline

Fetch primitive value from a named component of the structure.

If the named item exists within the SDS structure then fetch its value and convert it to the type of the template argument, if possible.

Supports the various primitive types - bool, char, short, unsigned short, INT32, UINT32, INT64, UINT64, float and double. Also std::string.

This is equivalent to the ArgGet series of C level calls, used for building up DRAMA command arguments.

Template Parameters
TThe SDS primitive type you wish to fetch
Parameters
nameThe name of the item within the SDS structure.
valueThe value retrieved will be written here.

References drama::CreateRunDramaTask(), and DramaTHROW_S.