company logo

Database :: locateWorkspace - Locate an existing Workspace

The function checks whether the workspace with the name passed in sWorkspaceName exists relatively to the currently opened workspace. The function returns true , when the workspace exists and false otherwise.

When workspace feature is not enabled for the database, the function throws an exception.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false .

Implementation details

bool Database  :: locateWorkspace ( odaba::String &sWorkspaceName )
  • sWorkspaceName - Workspace name

    The workspace name is the extension of the current workspace or database. The database can be considered as the root for all workspaces. The workspace name may address a workspace on top of the current one (simple workspace name) or a workspace on any higher level by passing a sequence of workspace names separated by '.'.

    In order to pass no dictionary path, an empty string ( String() ) has to be passed.