nidas  v1.2-1520
Public Member Functions | Protected Attributes | List of all members
nidas::core::XMLFdBinInputStream Class Reference

Implemenation of xercesc::BinInputStream, which reads from a unix file descriptor. More...

#include <XMLFdBinInputStream.h>

Inheritance diagram for nidas::core::XMLFdBinInputStream:
Inheritance graph
[legend]

Public Member Functions

 XMLFdBinInputStream (const std::string &n, int f)
 Constructor. More...
 
 ~XMLFdBinInputStream ()
 
unsigned int curPos () const
 
unsigned int readBytes (XMLByte *const toFill, const unsigned int maxToRead) throw (nidas::util::IOException)
 return number of bytes read, or 0 on EOF. More...
 

Protected Attributes

std::string name
 
int fd
 
unsigned int curpos
 
bool _eof
 

Detailed Description

Implemenation of xercesc::BinInputStream, which reads from a unix file descriptor.

Constructor & Destructor Documentation

nidas::core::XMLFdBinInputStream::XMLFdBinInputStream ( const std::string &  n,
int  f 
)
inline

Constructor.

Parameters
nname of device - only used when reporting errors.
funix file descriptor of device that is already open.
nidas::core::XMLFdBinInputStream::~XMLFdBinInputStream ( )
inline

Member Function Documentation

unsigned int nidas::core::XMLFdBinInputStream::curPos ( ) const
inline

References curpos.

unsigned int nidas::core::XMLFdBinInputStream::readBytes ( XMLByte *const  toFill,
const unsigned int  maxToRead 
)
throw (nidas::util::IOException
)
inline

return number of bytes read, or 0 on EOF.

References _eof, curpos, fd, and name.

Member Data Documentation

bool nidas::core::XMLFdBinInputStream::_eof
protected

Referenced by readBytes().

unsigned int nidas::core::XMLFdBinInputStream::curpos
protected

Referenced by curPos(), and readBytes().

int nidas::core::XMLFdBinInputStream::fd
protected

Referenced by readBytes().

std::string nidas::core::XMLFdBinInputStream::name
protected

Referenced by readBytes().


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