AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code

◆ Get() [10/25]

static void Sdp::Get ( const char *  name,
std::string *  value,
StatusType *  status,
int  buflen = 100 
)
inlinestatic

Fetch a string value as a std::string from a named parameter.

If the named parameter exists, then fetch its value and convert it to a std::string, if possible.

Note that this does not work for non-char array items which require more then buflen bytes - since it is not possible to ensure we resize the string appropiately - a ARG__CNVERR code will be returned.

Remarks
Only available if the macro DRAMA_ALLOW_CPP_STDLIB is defined.
See also
SdpGetString()
Parameters
nameThe name of the parameter.
valueThe value returned is written here.
statusInherited status.
buflenThe number of bytes to allow in the string for the result. Only used if the underlying value is not an array of SDS_CHAR

References Get(), and SdsId::Info().