![]() |
RDB 2
|
Database open settings. More...
#include <openSettings.hpp>
Public Member Functions | |
~OpenSettings () | |
OpenSettings () | |
Default constructor. More... | |
OpenSettings (riegl::rdb::Context &context) | |
OpenSettings (const OpenSettings &settings) | |
Copy constructor. More... | |
OpenSettings & | operator= (const OpenSettings &settings) |
Assignment operator. More... | |
void | load (const std::string &json) |
Load settings from JSON string. More... | |
std::string | save () const |
Save settings to JSON string. More... | |
Public Attributes | |
std::uint64_t | cacheSize |
Point cache size. More... | |
Friends | |
class | OpenSettingsWrapper |
Database open settings.
This class defines settings for opening a point cloud database.
Definition at line 61 of file openSettings.hpp.
riegl::rdb::pointcloud::OpenSettings::~OpenSettings | ( | ) |
riegl::rdb::pointcloud::OpenSettings::OpenSettings | ( | ) |
Default constructor.
All properties are set to default values.
|
explicit |
riegl::rdb::pointcloud::OpenSettings::OpenSettings | ( | const OpenSettings & | settings | ) |
Copy constructor.
All properties are copied from the given settings object.
void riegl::rdb::pointcloud::OpenSettings::load | ( | const std::string & | json | ) |
Load settings from JSON string.
This function parses the given JSON string and applies all available properties - missing properties are silently ignored (i.e. the value remains unchanged). When parsing the JSON string fails, an exception is thrown.
Example JSON string:
{ "cache_size": 524288000
OpenSettings& riegl::rdb::pointcloud::OpenSettings::operator= | ( | const OpenSettings & | settings | ) |
Assignment operator.
All properties are copied from the given settings object.
std::string riegl::rdb::pointcloud::OpenSettings::save | ( | ) | const |
Save settings to JSON string.
|
friend |
Definition at line 124 of file openSettings.hpp.
std::uint64_t riegl::rdb::pointcloud::OpenSettings::cacheSize |
Point cache size.
The database engine may buffer read and write operations in an internal cache. This value defines the cache size in bytes (octets).
Default: 500 MB
Definition at line 72 of file openSettings.hpp.