Client :: open - Open ODABA client
The function opens an ODABA client. The function may be called in order to open additional client handles, when required. When opening an Client handle, which is already opened, it will be closed before being opened again.
When a client handle is already opened, it will be closed before creating the new client handle.
Implementation overview
- Create copy handle for client
Client :: open ( cClient ) - Create application client
Client :: open (  ) - Open client for application type
Client :: open ( eApplicationType )
Implementation details
-
Create copy handle for client
Client  :: open ( odaba::Client &cClient )
The copy of the client handle refers to the client object that is referenced in the client handle passed in cClient. In order to open client handle for the main client, client.open(odaba::Application::mainClient()) can be called.
- cClient
- Client handle
The client handle refers to an (usually) opened ODABA client. Calling functions with invalid client handles may cause an exception. For checking the client handle, isValid() can be called.
to list
- cClient
- Client handle
-
Create application client
Client  :: open (  )
A new client different from the main client can be created in order to establish a connection to another server. The function is usually called, only, when more than one client is required by the application.
Empty clients are sufficient in order to open dictionary and data base for simple applications but do not provide access to system resources.
Notes:This function can be called in order to get a client handle anywhere in the application, since no additional information is requested for the client.
to list
-
Open client for application type
Client  :: open ( odaba::ApplicationTypes eApplicationType )
The function allows opening a client for GUI applications (WindowsApplication).
- eApplicationType
- Application type
This option indicates that the application will run as console or windows application.
to list
- eApplicationType
- Application type