company logo

Client :: openDataSource - Open data source

The data source to be opened must be defined in the configuration file (ini-file) passed to the main client (open(sIniFile,...)) or in the data catalog, when being defined in the configuration file for the main client.

When the data source has been opened successfully the function returns the corresponding object space handle. Otherwise the function throws an exception.

Return value:  Object Space ( odaba::ObjectSpace  )

An Object Space, conceivably not yet opened.

Implementation details

odaba::ObjectSpace Client  :: openDataSource ( odaba::String &sDataSourceName, odaba::AccessModes eAccessMode )
  • sDataSourceName - Data source name

    The name of the data source refers to a section in a configuration or ini-file or to a data source defined in the data catalog defined for the application. Other data source variables are set from the data source definition referred to by the data source name.

  • eAccessMode - Access mode

    Access mode for a property handle or database.