C++ is one of the most popular programming languages these days. It is a universal, general purpose language, which is useful in a wide range of applications, including desktop, servers, networking, embedded systems, databases, and lots more. Apache Thrift is a natural companion for C++ to provide highly scalable systems characterized by high performance.

Generating the code

Apache Thrift's compiler offers a rich choice of options for C++. Run the following command to see them:

$ thrift --help

Look for the information about C++ generators:

  cpp (C++)
    cob_style:       Generate "Continuation OBject"-style classes.
                     Omit calls to completion__() in CobClient class.
 Omits generation of default operators ==, ...

Get Learning Apache Thrift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.