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

◆ Arg() [1/5]

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

Arg constructor to access an item created by C language SDS.

This Arg constructor that takes an existing SDS id (C style) and creates an SdsId class object which referees to it. You must explicitly specify if the item is to be freed and deleted when the object's destructor is invoked, and what you do depends on when what other code may do with item. del and readfree are mutually exclusive.

Parameters
itemThe SdsIdType of the item. If 0 (default), a SdsId object which does not refer to any SDS item is created. This is normally only used when we want an argument to pass (by pointer) to a function which will use ShallowCopy() or DeepCopy() to set the ID or if you wish to use the New() method to create a new method later.
freeInvoke SdsFreeId() on the ID when the object is destroyed. Default is false.
delInvoke SdsDelete() on the ID when the object is destroyed. The default is false.
readfreeInvoke SdsReadFree() on the ID when the object is destroyed. The default is false.