StandardOutputWriter.hpp 939 B

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