diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-14 13:03:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-23 13:53:50 +0200 |
commit | bcd246076540a8353fa55fc0a5e19343c1a2dbc9 (patch) | |
tree | 9fe2c24ca33b3d670267a5cbc8c8c756589f359b /brep/package-version-search | |
parent | 24903813d11813f8ff9ac906d23b21e6c33b981d (diff) |
Implement package search service mockup
Diffstat (limited to 'brep/package-version-search')
-rw-r--r-- | brep/package-version-search | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/brep/package-version-search b/brep/package-version-search new file mode 100644 index 0000000..0292ae0 --- /dev/null +++ b/brep/package-version-search @@ -0,0 +1,32 @@ +// file : brep/package-version-search -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BREP_PACKAGE_VERSION_SEARCH +#define BREP_PACKAGE_VERSION_SEARCH + +#include <memory> // shared_ptr + +#include <odb/forward.hxx> // database + +#include <brep/module> +#include <brep/options> + +namespace brep +{ + class package_version_search: public module + { + private: + virtual void + handle (request&, response&); + + virtual void + init (cli::scanner&); + + private: + std::shared_ptr<options::package_version_search> options_; + std::shared_ptr<odb::core::database> db_; + }; +} + +#endif // BREP_PACKAGE_VERSION_SEARCH |