From 2a0f39b29c1bea6a4497c0f1826052ffa453af9e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Apr 2016 16:05:13 +0200 Subject: Move module implementation from brep/ to mod/ --- mod/database | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 mod/database (limited to 'mod/database') diff --git a/mod/database b/mod/database new file mode 100644 index 0000000..2730449 --- /dev/null +++ b/mod/database @@ -0,0 +1,26 @@ +// file : mod/database -*- C++ -*- +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef MOD_DATABASE +#define MOD_DATABASE + +#include // database + +#include +#include + +#include + +namespace brep +{ + // Returns pointer to the shared database instance, creating one on the + // first call. On subsequent calls ensures passed host and port equals + // to ones of the existing database instance throwing runtime_error + // otherwise. Is not thread-safe. + // + shared_ptr + shared_database (const options::db&); +} + +#endif // MOD_DATABASE -- cgit v1.1