The exstreamspeed C++ API closely matches the C API. Each C interface corresponds to a C++ class and each function in the interface corresponds to a method in that class.
The C++ interface is fully inlined and contained within the files
In general, C function names that begin with an
In general, C++ classes contain a handle member variable. Constructors call a
Exceptions to this include the classes: es::date, es::sock, es::mbc and es::mbn. es::date has a date-id integer member (see struct es_date for a discussion of date-ids) and es::sock has an integer file descriptor member.
es::mbc instances are instead constructed via es::mbd::newclass() and es::mbn via es::mb::newnode() and have no destructor implementations.
Return Codes and Exceptions
Error return codes in the C API are replaced by exceptions in the C++ interface:
es::err wraps the standard return code and is thrown if the underlying C function fails to return
es::sockerr is thrown by members of the es::sock class and wraps the system error code
es::errmsg is thrown by the mba interface and contains both return code and error message.
Iterator and sorted iterator methods (defined in
An additional class, es::mbnref, has been introduced to implement the binding of database node handles by reference - see es_mbb_mbn_r().
es::mbnref contains a
|Copyright © 2012 by Richard Brooks|