VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Attributes | Protected Attributes | Friends | List of all members
VICI::cfi::fdostream Class Reference

A file descriptor output stream. More...

#include <sos/fdstream.h>

Inheritance diagram for VICI::cfi::fdostream:

Public Member Functions

 fdostream (int fd, bool isCloseNeeded=false)
 constructor More...
 
void close ()
 close the file descriptor
 

Static Public Attributes

static bool CLOSE_NEEDED = true
 Flag to indicate file descriptor should be closed.
 
static bool CLOSE_NOT_NEEDED = false
 Flag to indicate file descriptor should not be closed.
 

Protected Attributes

fdoutbuf mBuf
 Our output file descriptor stream buffer.
 

Friends

class fdoutbuf
 

Detailed Description

A file descriptor output stream.

Constructor & Destructor Documentation

fdostream::fdostream ( int  fd,
bool  isCloseNeeded = false 
)

constructor

Constructor which accepts the file descriptor to write to and a flag indicating whether the file descriptor is closed on destruction.

Parameters
fdthe file descriptor to write to
isCloseNeededif true close on destruction

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