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/ --- brep/database-module | 55 ---------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 brep/database-module (limited to 'brep/database-module') diff --git a/brep/database-module b/brep/database-module deleted file mode 100644 index 64d5aaf..0000000 --- a/brep/database-module +++ /dev/null @@ -1,55 +0,0 @@ -// file : brep/database-module -*- C++ -*- -// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#ifndef BREP_DATABASE_MODULE -#define BREP_DATABASE_MODULE - -#include // database - -#include -#include - -#include -#include - -namespace brep -{ - // A module that utilises the database. Specifically, it will retry the - // request in the face of recoverable database failures (deadlock, loss of - // connection, etc) up to a certain number of times. - // - class database_module: public module - { - protected: - database_module () = default; - - // Create a shallow copy (handling instance) if initialized and a deep - // copy (context exemplar) otherwise. - // - explicit - database_module (const database_module&); - - // Required to avoid getting warning from clang that - // database_module::init() hides module::init() virtual functions. This - // way all functions get to the same scope and become overloaded set. - // - using module::init; - - void - init (const options::db&); - - virtual bool - handle (request&, response&) = 0; - - protected: - size_t retry_; - shared_ptr db_; - - private: - virtual bool - handle (request&, response&, log&); - }; -} - -#endif // BREP_DATABASE_MODULE -- cgit v1.1