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

◆ Get() [9/24]

void Arg::Get ( const char *  name,
std::string *  value,
StatusType *  status,
int  buflen = 100 
) const
inline

Fetch a string value as a std::string from a named component of the Arg structure.

If the named item exists within the ARG structure then fetch its value and convert it a std::string value, if possible.

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

Remarks
Only available if the marcro DRAMA_ALLOW_CPP_STDLIB is defined.
See also
ArgGetString()
Parameters
nameThe name of the item within the SDS structure.
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 SdsId::Info().