Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
mongo_instance.hpp
Go to the documentation of this file.
1
/*
2
__ __ ___ _
3
| \/ | ___ _ __ __ _ ___|_ _|_ __ ___| |_
4
| |\/| |/ _ \| '_ \ / _` |/ _ \| || '_ \/ __| __|
5
| | | | (_) | | | | (_| | (_) | || | | \__ \ |_
6
|_| |_|\___/|_| |_|\__, |\___/___|_| |_|___/\__|
7
|___/
8
Internal header: NOT part of the installed SDK.
9
10
The LIB_HEADERS glob in the top-level CMakeLists is not recursive, so headers
11
under src/detail/ are deliberately kept out of the install set. Only files
12
compiled into MadsCore may include this.
13
*/
14
#pragma once
15
16
#include <mongocxx/instance.hpp>
17
18
namespace
Mads
{
19
namespace
detail {
20
36
inline
mongocxx::instance &
mongo_instance
() {
37
static
mongocxx::instance instance{};
38
return
instance;
39
}
40
41
}
// namespace detail
42
}
// namespace Mads
Mads::detail::mongo_instance
mongocxx::instance & mongo_instance()
Return the process-wide mongocxx driver instance.
Definition
mongo_instance.hpp:36
Mads
Definition
agent.hpp:67
src
detail
mongo_instance.hpp
Generated by
1.9.8