aboutsummaryrefslogtreecommitdiff
path: root/brep/package-version-search
diff options
context:
space:
mode:
Diffstat (limited to 'brep/package-version-search')
-rw-r--r--brep/package-version-search32
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