company logo

BaseContext :: enabled - Enabled property

When a context has been disabled (enabled = false), no events are generated for the context until it is enabled again. Functions, however, which called directly via executeFunction(), will be executed, regardless of the enable state.

When the context handle does not refer to a valid context instance the function throws an exception.

Return value:  Enable resource ( bool  )

In order to enable the referenced resource true should be passed. Passing false will disable the resource.

Implementation overview

Implementation details

  1. Get enabled state
    bool BaseContext  :: enabled (  )

    The function returns, whether the context is enabled (true) or not (false).

  2. to list
  3. Enable context events
    bool BaseContext  :: enabled ( bool bEnable )

    Setting the enabled state to false (bEnable) will disable the context. The context must be enabled after being disabled in order to process events again by passing true in bEnable..

    • bEnable - Enable resource

      In order to enable the referenced resource true should be passed. Passing false will disable the resource.

  4. to list