fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::fdoutbuf Class Reference

File descriptor output streambuf, inspiration from Josuttis N.M. More...

#include <logger.hpp>

Inheritance diagram for FIX8::fdoutbuf:

Public Member Functions

 fdoutbuf (int _fd)
 
virtual ~fdoutbuf ()
 

Protected Member Functions

virtual int_type overflow (int_type c)
 
virtual std::streamsize xsputn (const char *s, std::streamsize num)
 

Protected Attributes

int fd
 

Detailed Description

File descriptor output streambuf, inspiration from Josuttis N.M.

Definition at line 50 of file logger.hpp.

Constructor & Destructor Documentation

FIX8::fdoutbuf::fdoutbuf ( int  _fd)
inline

Definition at line 72 of file logger.hpp.

72 : fd(_fd) {}
virtual FIX8::fdoutbuf::~fdoutbuf ( )
inlinevirtual

Definition at line 73 of file logger.hpp.

73 {}

Member Function Documentation

virtual int_type FIX8::fdoutbuf::overflow ( int_type  c)
inlineprotectedvirtual

Definition at line 55 of file logger.hpp.

56  {
57  if (c != traits_type::eof())
58  {
59  char z(c);
60  if (write(fd, &z, 1) != 1)
61  return traits_type::eof();
62  }
63  return c;
64  }
virtual std::streamsize FIX8::fdoutbuf::xsputn ( const char *  s,
std::streamsize  num 
)
inlineprotectedvirtual

Definition at line 66 of file logger.hpp.

67  {
68  return write (fd, s, num);
69  }

Member Data Documentation

int FIX8::fdoutbuf::fd
protected

Definition at line 53 of file logger.hpp.


The documentation for this class was generated from the following file: