You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

  1. /*
  2. ISC License
  3. Copyright (c) 2020, Antonio SJ Musumeci <trapexit@spawn.link>
  4. Permission to use, copy, modify, and/or distribute this software for any
  5. purpose with or without fee is hereby granted, provided that the above
  6. copyright notice and this permission notice appear in all copies.
  7. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. #pragma once
  16. #include "policy.hpp"
  17. namespace Policy
  18. {
  19. namespace EPLUS
  20. {
  21. class Action final : public Policy::ActionImpl
  22. {
  23. public:
  24. Action()
  25. : Policy::ActionImpl("eplus")
  26. {}
  27. public:
  28. int operator()(const Branches::CPtr&,const char*,StrVec*) const final;
  29. };
  30. class Create final : public Policy::CreateImpl
  31. {
  32. public:
  33. Create()
  34. : Policy::CreateImpl("eplus")
  35. {}
  36. public:
  37. int operator()(const Branches::CPtr&,const char*,StrVec*) const final;
  38. bool path_preserving(void) const final { return true; }
  39. };
  40. class Search final : public Policy::SearchImpl
  41. {
  42. public:
  43. Search()
  44. : Policy::SearchImpl("eplus")
  45. {}
  46. public:
  47. int operator()(const Branches::CPtr&,const char*,StrVec*) const final;
  48. };
  49. }
  50. }