Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

39 rader
1008 B

  1. #pragma once
  2. #include <cppargs/group/group.h>
  3. #include <cppargs/options/option.h>
  4. namespace cppargs
  5. {
  6. struct printing
  7. {
  8. public:
  9. /**
  10. * @brief Print the passed group to the passed stream.
  11. *
  12. * @param[in] os Stream to print group to.
  13. * @param[in] g Group to print to stream.
  14. */
  15. inline void operator()(std::ostream& os, const group& g) const;
  16. private:
  17. /**
  18. * @brief Print the passed group to the passed stream.
  19. *
  20. * @param[in] os Stream to print group to.
  21. * @param[in] g Group to print to stream.
  22. */
  23. inline void print_group(std::ostream& os, const group& g) const;
  24. /**
  25. * @brief Print the passed option to the passed stream.
  26. *
  27. * @param[in] os Stream to print group to.
  28. * @param[in] o Option to print to stream.
  29. */
  30. inline void print_option(std::ostream& os, const option& o) const;
  31. };
  32. }