diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-08-06 22:03:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-08-07 19:19:22 +0300 |
commit | 443088f6093d3420212be0e1af3b9e802dca9362 (patch) | |
tree | b1ec3b0c62ee0b8d66b0cbf21e21d68ae0d4f806 /mod/mod-advanced-search.hxx | |
parent | 7db53790ca2d2c004bfd00b503eca59a8d084870 (diff) |
Add support for advanced package search
Diffstat (limited to 'mod/mod-advanced-search.hxx')
-rw-r--r-- | mod/mod-advanced-search.hxx | 41 |
1 files changed, 41 insertions, 0 deletions
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 <libbrep/types.hxx> +#include <libbrep/utility.hxx> + +#include <mod/module-options.hxx> +#include <mod/database-module.hxx> + +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::advanced_search> options_; + }; +} + +#endif // MOD_MOD_ADVANCED_SEARCH_HXX |