mirror of
https://github.com/TomHarte/CLK.git
synced 2025-09-27 22:16:21 +00:00
Implements BSON deserialisation, other than arrays.
This commit is contained in:
@@ -72,6 +72,14 @@ class MultiStruct: public Reflection::Struct {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void *get(const std::string &name) final {
|
||||
for(auto &options: options_) {
|
||||
auto value = options->get(name);
|
||||
if(value) return value;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void set(const std::string &name, const void *value) final {
|
||||
const auto safe_type = type_of(name);
|
||||
if(!safe_type) return;
|
||||
|
Reference in New Issue
Block a user