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

◆ ShallowCopy() [2/2]

void SdsId::ShallowCopy ( SdsId source,
const bool  outlives = true 
)
inline

Shallow copy from SdsId.


Copy another SdsId item into this object. The existing SDS ID refered to by this object is first tidied up correctly.
After the copy, both the source and this object refer to the same SDS structure. The outlives parameter must be set correctly to determine which one destroys the underlying SDS structure.

Note that if outlives is true, then write access is required to source - hence it cannot be const.

See also
SdsId::DeepCopy
Parameters
sourceThe Sds object to copy.
outlivesIf true (default) this object is to outlive the source object.

Referenced by Arg::Arg(), Arg::Arg(), Arg::Arg(), DcppShared::DcppShared(), DcppShared::DcppShared(), Sdp::Get(), Sdp::Get(), and Arg::New().