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

◆ SdsId() [1/12]

SdsId::SdsId ( const SdsIdType  item = 0,
const bool  free = false,
const bool  del = false,
const bool  readfree = false 
)
inline

Construct an SdsId item from an existing C language SDS id.

This SdsId constructor that takes an existing SDS id (C style) and creates an SdsId class object which refers to that SDS id. You must explictly specify if the item is to be free-ed and/or deleted when the object's destructor is invoked, and what you do depends on when what other code may do with item. The del and readfree are mutually exclusive, through this is currently not checked in this implementation.

Parameters
itemThe SdsIdType of the item. If 0 (the default), the SdsId object constructed does not refer to any SDS item. This is normally only used when we want an argument to pass (by pointer) to a function which will use SdsId::ShallowCopy or SdsId::DeepCopy to set the ID.
freeSet true to invoke SdsFreeId() on the ID when the object is destroyed. The default is false.
delSet true to invoke SdsDelete() on the ID when the object is destroyed. The default is false.
readfreeSet true to invoke SdsReadFree() on the ID when the object is destroyed. The default is false.