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 |___/
8Internal header: NOT part of the installed SDK.
9
10The LIB_HEADERS glob in the top-level CMakeLists is not recursive, so headers
11under src/detail/ are deliberately kept out of the install set. Only files
12compiled into MadsCore may include this.
13*/
14#pragma once
15
16#include <mongocxx/instance.hpp>
17
18namespace Mads {
19namespace detail {
20
36inline mongocxx::instance &mongo_instance() {
37 static mongocxx::instance instance{};
38 return instance;
39}
40
41} // namespace detail
42} // namespace Mads
mongocxx::instance & mongo_instance()
Return the process-wide mongocxx driver instance.
Definition agent.hpp:67