StandardOutputWriter.hpp 880 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-06
  6. * Changed: 2024-09-13
  7. *
  8. * */
  9. #ifndef LS_STD_STANDARD_OUTPUT_WRITER_HPP
  10. #define LS_STD_STANDARD_OUTPUT_WRITER_HPP
  11. #include <ls-std/core/interface/IWriter.hpp>
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. /*
  14. * @doc: class(name: 'StandardOutputWriter', package: 'io')
  15. * @doc: io.StandardOutputWriter.description('This class can be used to write a string to stdout.')
  16. * */
  17. namespace ls::std::io
  18. {
  19. class LS_STD_DYNAMIC_GOAL StandardOutputWriter : public ls::std::core::interface_type::IWriter
  20. {
  21. public:
  22. StandardOutputWriter();
  23. ~StandardOutputWriter() noexcept override;
  24. bool write(const ls::std::core::type::byte_field &_data) override; // nodiscard is optional here
  25. };
  26. }
  27. #endif