libragephoto: add C++ namespaces (API change)

- RagePhoto::saveFile() -> use const char* instead of std::string
- RagePhoto C++ -> C API: try catch for throwable functions (to match C
impl. behaviour)
- Rename header files and classes
This commit is contained in:
Syping 2024-01-15 17:05:54 +01:00
parent b94e66624b
commit e1cf6df258
14 changed files with 275 additions and 249 deletions

View file

@ -12,8 +12,8 @@
\subpage Usage "Using libragephoto"
<b>Reference</b>
RagePhoto (C++ API)
RagePhotoA (C++ API based on C API)
ragephoto::cxx_abi::photo (C++ API)
ragephoto::c_abi::photo (C++ API based on C API)
RagePhoto.h (C API)
RagePhotoData (Data Object Struct)
RagePhotoFormatParser (Custom Format Parser Struct)

View file

@ -4,7 +4,7 @@
<h4 id="cxx_include_usage">Including and using RagePhoto</h4>
Include RagePhoto (C++ native), RagePhotoA (C API wrapper) or \link RagePhotoB.hpp RagePhotoB \endlink (best implementation)
Include RagePhoto
\code{.cpp}
#include <RagePhoto>