company logo

BaseContext :: systemContext - Application context property

The property returns the application context. Setting the proper system context allows controlling standard input and message output operations and provides facilities for running environment specific functions (like log-in) depending on the application type.

When no context has been set as system context, an exception will be thrown.

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

Notes:

The function is obsolete. Use Application::context(), instead. Function will be removed in version 13.

Return value:  Base context handle ( odaba::BaseContext & )

Implementation overview

Implementation details

  1. Get application context
    odaba::BaseContext & BaseContext  :: systemContext (  )

    The property returns the application context. When no context has been set as application context, an exception will be thrown. In order to check, whether an application context exists, hasSystemContext() might be called.

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

  2. to list
  3. Set application context
    odaba::BaseContext & BaseContext  :: systemContext ( odaba::BaseContext &rBaseContext )

    The function sets the context passed in rBaseContext as application context. In order to reset the application context resetSystemContext() has to be called.

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

    • rBaseContext - Base context handle
  4. to list