CONZEPT 16 C++ API
C16::Client Class Reference

Client to access a server hosting databases. More...

#include "C16/Client.hpp"

Detailed Description

Client to access a server hosting databases.

Public Member Functions

 Client ()
 Constructs a client. More...
 
const std::string & release () const
 Gets the release of the client. More...
 
unsigned long long int memory_usage () const
 Gets the memory usage of the client in units of bytes. More...
 
unsigned long long int memory_usage_peak () const
 Gets the peak memory usage of the client in units of bytes. More...
 

Constructor & Destructor Documentation

◆ Client()

C16::Client::Client ( )

Constructs a client.

Member Function Documentation

◆ release()

const std::string& C16::Client::release ( ) const

Gets the release of the client.

Returns
String representing the release of the client

The release is represented by a string of the form <major>.<minor>.<revision>, where the parts in angle brackets (< ... >) contain the following data:

  • <major> – Major release of the client. An integer consisting of one digit.
  • <minor> – Minor release of the client. An integer consisting of one digit.
  • <revision> – Revision of the client. An integer consisting of two digits, possibly followed by one lower case letter (a to z), identifying the sub-revision of the client.

Examples: 5.0.08, 5.4.16, 5.8.32b

See also
Server::release

◆ memory_usage()

unsigned long long int C16::Client::memory_usage ( ) const

Gets the memory usage of the client in units of bytes.

The memory usage is the amount of memory currently in use.

◆ memory_usage_peak()

unsigned long long int C16::Client::memory_usage_peak ( ) const

Gets the peak memory usage of the client in units of bytes.

The peak memory usage is the maximal memory usage since the construction of the client.