knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
bson-helper.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_BSON_H
7 #define KNOWROB_BSON_H
8 
9 #include <mongoc.h>
10 #include <optional>
11 
12 namespace knowrob::mongo {
17  typedef struct {
18  bson_t bson;
19  } bson_wrapper;
20 
25  typedef struct {
26  const bson_t *bson;
27  } bson_wrapper_ptr;
28 
33  std::optional<double> bson_iterOptionalDouble(const bson_iter_t *iter);
34 }
35 
36 #endif //KNOWROB_BSON_H
std::optional< double > bson_iterOptionalDouble(const bson_iter_t *iter)
Definition: bson-helper.cpp:10