Quantcast

[ANN] eipp: A C++11 Header Only Library for using erlang ei library.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ANN] eipp: A C++11 Header Only Library for using erlang ei library.

月忧茗-2


This library to decode/encode erlang extern format more convenient.

Encode:

you can encode std::list, std::vector, std::map, std::tuple  to ext driectly.

e.g.


auto data = std::make_tuple(1, "abc");
encoder.encoder(data);
std::string output = encoder.get_data();

Decode:

Just define the schema of the ext structs.  and just one api call.
e.g. 

using T = eipp::Tuple<eipp::Long, eipp::Atom, epp::List<eipp::Long>>;
auto result = decoder.parse<T>();


More examples in the github  link above.




--

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Loading...