StandardOutputWriter.cpp 596 B

12345678910111213141516171819202122232425
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-06
  6. * Changed: 2023-02-23
  7. *
  8. * */
  9. #include <iostream>
  10. #include <ls-std/io/StandardOutputWriter.hpp>
  11. using ls::std::core::type::byte_field;
  12. using ls::std::io::StandardOutputWriter;
  13. using std::cout;
  14. StandardOutputWriter::StandardOutputWriter() = default;
  15. StandardOutputWriter::~StandardOutputWriter() noexcept = default;
  16. bool StandardOutputWriter::write(const byte_field &_data)
  17. {
  18. cout << _data;
  19. return !cout.fail();
  20. }