From de11d491e7a5424267926c7f4497aab8a87455f8 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 17 Feb 2020 21:11:01 +0100 Subject: [PATCH] reverted to hand-edited single lib header --- fdostream.hpp | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 fdostream.hpp diff --git a/fdostream.hpp b/fdostream.hpp deleted file mode 100644 index edc5157..0000000 --- a/fdostream.hpp +++ /dev/null @@ -1,43 +0,0 @@ -// -// fdostream.hpp -// libscio -// -// Created by Bob Polis at 2020-02-14 -// Copyright (c) 2020 SwiftCoder. All rights reserved. -// - -#ifndef _fdostream_H_ -#define _fdostream_H_ - -#include -#include -#include - -namespace sc { - - namespace io { - - class fdoutbuf: public std::streambuf { - public: - fdoutbuf(int fd): _fd(fd) {} - - private: - int _fd; - - int_type overflow(int_type c) override; - std::streamsize xsputn(const char* s, std::streamsize num) override; - }; - - class fdostream : public std::ostream { - public: - fdostream(int fd) : std::ostream(&_buf), _buf(fd) {} - - private: - fdoutbuf _buf; - }; - - } - -} - -#endif // _fdostream_H_