From c715379c625935bd4b28bebb35f34721342cc7f3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Dec 2015 19:29:04 +0200 Subject: Source file names fixup --- brep/database | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 brep/database (limited to 'brep/database') diff --git a/brep/database b/brep/database new file mode 100644 index 0000000..6fdfe0b --- /dev/null +++ b/brep/database @@ -0,0 +1,25 @@ +// file : brep/database -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BREP_DATABASE +#define BREP_DATABASE + +#include // database + +#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 // BREP_DATABASE -- cgit v1.1