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

File pointer stream. More...

#include <logger.hpp>

Inheritance diagram for FIX8::fptrostream:

Public Member Functions

 fptrostream (FILE *fptr)
 
virtual ~fptrostream ()
 Dtor. More...
 
int getfileno ()
 

Protected Attributes

fdoutbuf buf_
 

Private Attributes

FILE * fptr_
 

Detailed Description

File pointer stream.

Definition at line 77 of file logger.hpp.

Constructor & Destructor Documentation

FIX8::fptrostream::fptrostream ( FILE *  fptr)
inline

Ctor.

Parameters
fptrFILE*

Definition at line 87 of file logger.hpp.

88  : std::ostream(&buf_), fptr_(fptr), buf_(fileno(fptr)) {}
fdoutbuf buf_
Definition: logger.hpp:82
virtual FIX8::fptrostream::~fptrostream ( )
inlinevirtual

Dtor.

Definition at line 91 of file logger.hpp.

92  {
93 #ifdef _MSC_VER
94  _pclose(fptr_);
95 #else
96  pclose(fptr_);
97 #endif
98  }

Member Function Documentation

int FIX8::fptrostream::getfileno ( )
inline

Get the filno (fd)

Returns
fd

Definition at line 102 of file logger.hpp.

102 { return fileno(fptr_); }

Member Data Documentation

fdoutbuf FIX8::fptrostream::buf_
protected

Definition at line 82 of file logger.hpp.

FILE* FIX8::fptrostream::fptr_
private

Definition at line 79 of file logger.hpp.


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