#include <cstdint>
#include <iostream>
#include <exception>
int main()
{
try
{
rdb.
open(
"pointcloud.rdbx", settings);
[](const uint8_t progress)
{
std::cout << "progress: " << int(progress) << "%" << std::endl;
}
);
return 0;
}
{
std::cerr << error.
what() <<
" (" << error.
details() <<
")" << std::endl;
return 1;
}
catch(const std::exception &error)
{
std::cerr << error.what() << std::endl;
return 1;
}
}