// file : brep/shared-database -*- C++ -*- // copyright : Copyright (c) 2014-2015 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BREP_SHARED_DATABASE #define BREP_SHARED_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_SHARED_DATABASE