Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ library with a Java-like API [closed]

Tags:

java

c++

api

Hoping that anybody here knows about a good one: I'm looking for a (free to use) C++ library with a class hierarchy and methods resembling the Java API, with at least the I/O & networking part if it, specifically HTTP handling.

I work mainly with C & Java, but for this particular project C++ is recommended, so I thought of adopting a good set of C++ libraries without facing a steep learning curve.

Thanks in advance for any recommendation.

like image 513
Rafael Sierra Avatar asked Jun 30 '09 07:06

Rafael Sierra


2 Answers

Qt is IMHO very java like. I.e. they prefer Java-Style Iterators over the STL ones. Qt includes networking (examples) and much other stuff (like scripting via javascript)

like image 180
Maik Beckmann Avatar answered Oct 10 '22 03:10

Maik Beckmann


Have you looked at the Boost libraries?

  • Boost.IOStreams provides a framework for defining streams, stream buffers and i/o filters.
  • Asio - Portable networking, including sockets, timers, hostname resolution and socket iostreams.
  • Many others....

The Boost libraries provide similar capabilities as compared to the Java API, but they very much 'look and feel' - appropriately - like a C++ library.

like image 27
Brandon E Taylor Avatar answered Oct 10 '22 04:10

Brandon E Taylor