improve cpp binding and examples
authorMarkus Raab <elektra@markus-raab.org>
Sat, 12 Jan 2013 22:04:47 +0000 (23:04 +0100)
committerMarkus Raab <elektra@markus-raab.org>
Sat, 12 Jan 2013 22:04:47 +0000 (23:04 +0100)
commit14ceee2e3e3f6d0f23b00462280c3a347cb4f991
tree3543fbfef4f8ffed682c632a2f98f72697584c76
parent0b249ce9118b44b042b7c95e1edbf287b06e859e
improve cpp binding and examples

USER_DEFINED_IO: what() renders warnings+errors, but also let user define
it themselves
put everything in namespace kdb (also operators)
csize checks added (std::string(0, '') gives run-time exception)
add empty checks (except binary because it cant be zero length?)
13 files changed:
src/bindings/cpp/examples/cpp_example_get.cpp
src/bindings/cpp/examples/cpp_example_hello.cpp
src/bindings/cpp/examples/cpp_example_io.cpp
src/bindings/cpp/examples/cpp_example_userexception.cpp
src/bindings/cpp/include/kdb.hpp
src/bindings/cpp/include/kdbexcept.hpp
src/bindings/cpp/include/kdbio.hpp
src/bindings/cpp/include/key.hpp
src/bindings/cpp/include/keyexcept.hpp
src/bindings/cpp/include/keyio.hpp
src/bindings/cpp/include/keyset.hpp
src/bindings/cpp/include/keysetio.hpp
src/bindings/cpp/tests/testcpp_key.cpp