Waiting

The following functions allow to modify items in the tree:

Erase

static inline void Ensenso::sealed::Erase(int result, String itemPath)

Wraps nxLibErase()

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item or subtree to erase

SetBinary

template<typename T>
static inline void Ensenso::sealed::SetBinary(int result, String itemPath, array<T> buffer)

Wraps nxLibSetBinary()

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item to access.

  • buffer – A pointer to the memory, where the new item content should be read from.

SetBool

static inline void Ensenso::sealed::SetBool(int result, String itemPath, bool value)

Wraps nxLibSetBool()

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item to set. When specifying a subtree, the entire subtree will be replaced by the specified value.

  • value – The value to set.

SetDouble

static inline void Ensenso::sealed::SetDouble(int result, String itemPath, double value)

Wraps nxLibSetDouble()

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item to set. When specifying a subtree, the entire subtree will be replaced by the specified value.

  • value – The value to set.

SetInt

static inline void Ensenso::sealed::SetInt(int result, String itemPath, int value)

Wraps nxLibSetInt()

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item to set. When specifying a subtree, the entire subtree will be replaced by the specified value.

  • value – The value to set.

SetJson

static inline void Ensenso::sealed::SetJson(int result, String itemPath, String value, bool onlyWriteableNodes)

Wraps nxLibSetJson()

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item to set. When specifiying a subtree, the entire subtree will be replaced by the specified value.

  • value – The JSON string representing the value or subtree to write.

  • onlyWriteableNodes – See the corresponding parameter of nxLibSetJson()

SetNull

static inline void Ensenso::sealed::SetNull(int result, String itemPath)

Sets an item to the value Null

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item to set to the value Null. When specifying a subtree, the entire subtree will be replaced by a single Null value.

SetString

static inline void Ensenso::sealed::SetString(int result, String itemPath, String value)

Wraps nxLibSetString()

Parameters
  • result – The error code of operation.

  • itemPath – The path of the item to set. When specifying a subtree, the entire subtree will be replaced by the specified value.

  • value – The value to set.