![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|

Go to the source code of this file.
Namespaces | |
| cloudViewer | |
| Generic file read and write utility for python interface. | |
| cloudViewer::io | |
Macros | |
| #define | DECLARE_STRINGIFY_ENUM(ENUM_TYPE) |
| #define | STRINGIFY_ENUM(ENUM_TYPE, ...) |
Functions | |
| bool | cloudViewer::io::ReadIJsonConvertible (const std::string &filename, cloudViewer::utility::IJsonConvertible &object) |
| bool | cloudViewer::io::WriteIJsonConvertible (const std::string &filename, const cloudViewer::utility::IJsonConvertible &object) |
| bool | cloudViewer::io::ReadIJsonConvertibleFromJSON (const std::string &filename, cloudViewer::utility::IJsonConvertible &object) |
| bool | cloudViewer::io::WriteIJsonConvertibleToJSON (const std::string &filename, const cloudViewer::utility::IJsonConvertible &object) |
| bool | cloudViewer::io::ReadIJsonConvertibleFromJSONString (const std::string &json_string, cloudViewer::utility::IJsonConvertible &object) |
| bool | cloudViewer::io::WriteIJsonConvertibleToJSONString (std::string &json_string, const cloudViewer::utility::IJsonConvertible &object) |
| #define DECLARE_STRINGIFY_ENUM | ( | ENUM_TYPE | ) |
String to and from enum mapping, based on https://github.com/nlohmann/json/blob/master/include/nlohmann/detail/macro_scope.hpp (MIT license) If you have an enum: enum IMAGE_FORMAT {FORMAT_PNG, FORMAT_JPG}; Use as STRINGIFY_ENUM(IMAGE_FORMAT, { {FORMAT_INVALID, nullptr}, {FORMAT_PNG, "png"}, {FORMAT_JPG, "jpg"} }) in the cpp file and DECLARE_STRINGIFY_ENUM(IMAGE_FORMAT) in the header file. This creates the functions
Definition at line 69 of file IJsonConvertibleIO.h.
| #define STRINGIFY_ENUM | ( | ENUM_TYPE, | |
| ... | |||
| ) |
Definition at line 74 of file IJsonConvertibleIO.h.