Client :: equals - Compare client handles
The function compares the current client handle with the client handle passed via rClient. The function returns true when the client handles are opened and refer to the same client object and false otherwise. Clients are the same when they have been assigned using the operator= or the copy constructor. Client handles constructed by calling the dummy constructor ( Client() ) are referring always to the main client and are, hence, equal.
Client mainClient(); // creates a handle for the main client
if ( myClient == mainClient )
printf("I am a main client handle");
The value is true when the function was executed successfully. Otherwise the value is set to false.
Implementation details
- 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.