company logo

Database :: existsWorkspace - Exist workspace?

The function checks, whether a workspace with the name passed in sWorkspaceName exists as subordinated workspace. The function returns true, when the workspace exists and false otherwise.When the database has already opened a workspace the function looks for the workspace relatively to the opened one.

The function throws an exception, when the workspace feature is not activated for the database.

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  :: existsWorkspace ( 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.