diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-22 19:29:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-08 18:26:00 +0200 |
commit | c715379c625935bd4b28bebb35f34721342cc7f3 (patch) | |
tree | 97e55364e786ab794514450e879006ee61ac8643 /brep/database | |
parent | eb16296f88ce0fdb4a98a08950b58a346a6e2bd9 (diff) |
Source file names fixup
Diffstat (limited to 'brep/database')
-rw-r--r-- | brep/database | 25 |
1 files changed, 25 insertions, 0 deletions
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 <odb/forward.hxx> // database + +#include <brep/types> + +#include <brep/options> + +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<odb::core::database> + shared_database (const options::db&); +} + +#endif // BREP_DATABASE |