Ensenso::NxLibItemToken

class Ensenso.NxLibItemToken

Holds an NxLibItem. The only purpose of this class is to hold an NxLibItem, especially the ones of temporary NxLibCommands. If the temporary command execution fails, usually the NxLibItem slot is also destroyed. But the token, holding the NxLibItem, will propagate the item to an NxLibException, if the command execution is not successful and throws.

Public Functions

NxLibItemToken (NxLibItem item)

Constructor taking an NxLibItem.

Param item

The item the token should hold, until the token itself is destroyed.

NxLibItem GetItem ()

Returns the NxLibItem held by the token.

Return

The item.