Home / Companies / Couchbase / Blog / Post Details
Content Deep Dive

libcouchbase with C++ and threads (1/2)

Blog post from Couchbase

Post Details
Company
Date Published
Author
Mark Nunberg, Software Engineer, Couchbase
Word Count
705
Company Posts That Month
226
Language
English
Hacker News Points
-
Post removed?
No
Summary

The author created a set of C++ bindings for libcouchbase, aiming to provide a standard and generic interface. They stayed away from using large external libraries like boost or C++11 to ensure maximum compatibility for C++. The bindings expose the semantics of command objects, response objects, and callbacks. Command objects inherit from a `Command` object and have accessors for key and hashkey, while response objects contain the C `lcb_resp_t *` as their only data member. The author implemented a callback interface in a unified object, allowing users to handle commands without explicitly setting handlers.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.