knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
bson_pl.h
Go to the documentation of this file.
1 #ifndef __KB_BSON_MONGO_H__
2 #define __KB_BSON_MONGO_H__
3 
4 #include <mongoc.h>
5 // SWI Prolog
6 #define PL_SAFE_ARG_MACROS
7 #include <SWI-cpp.h>
8 
9 PlTerm bson_to_term(const bson_t *bson);
10 
11 bool bsonpl_append(bson_t *doc, const char *key, const PlTerm &term, bson_error_t *err);
12 
13 bool bsonpl_concat(bson_t *doc, const PlTerm &term, bson_error_t *err);
14 
15 #endif //__KB_BSON_MONGO_H__
PlTerm bson_to_term(const bson_t *bson)
Definition: bson_pl.cpp:210
bool bsonpl_concat(bson_t *doc, const PlTerm &term, bson_error_t *err)
Definition: bson_pl.cpp:357
bool bsonpl_append(bson_t *doc, const char *key, const PlTerm &term, bson_error_t *err)
Definition: bson_pl.cpp:311
TermRule & term()
Definition: terms.cpp:136