From 443088f6093d3420212be0e1af3b9e802dca9362 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 6 Aug 2024 22:03:31 +0300 Subject: Add support for advanced package search --- mod/mod-advanced-search.hxx | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 mod/mod-advanced-search.hxx (limited to 'mod/mod-advanced-search.hxx') diff --git a/mod/mod-advanced-search.hxx b/mod/mod-advanced-search.hxx new file mode 100644 index 0000000..4ab4d42 --- /dev/null +++ b/mod/mod-advanced-search.hxx @@ -0,0 +1,41 @@ +// file : mod/mod-advanced-search.hxx -*- C++ -*- +// license : MIT; see accompanying LICENSE file + +#ifndef MOD_MOD_ADVANCED_SEARCH_HXX +#define MOD_MOD_ADVANCED_SEARCH_HXX + +#include +#include + +#include +#include + +namespace brep +{ + class advanced_search: public database_module + { + public: + advanced_search () = default; + + // Create a shallow copy (handling instance) if initialized and a deep + // copy (context exemplar) otherwise. + // + explicit + advanced_search (const advanced_search&); + + virtual bool + handle (request&, response&); + + virtual const cli::options& + cli_options () const {return options::advanced_search::description ();} + + private: + virtual void + init (cli::scanner&); + + private: + shared_ptr options_; + }; +} + +#endif // MOD_MOD_ADVANCED_SEARCH_HXX -- cgit v1.1