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

Implemenation of xercesc::InputSource, that returns an XMLFdBinInputStream for reading from a Unix file descriptor - i.e. More...

#include <XMLFdInputSource.h>

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

Public Member Functions

 XMLFdInputSource (const std::string &n, int f)
 Constructor. More...
 
 ~XMLFdInputSource ()
 
xercesc::BinInputStream * makeStream () const
 Create an instance of a BinInputStream. More...
 

Protected Attributes

std::string name
 
int fd
 

Detailed Description

Implemenation of xercesc::InputSource, that returns an XMLFdBinInputStream for reading from a Unix file descriptor - i.e.

an opened socket for example.

Constructor & Destructor Documentation

nidas::core::XMLFdInputSource::XMLFdInputSource ( 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::XMLFdInputSource::~XMLFdInputSource ( )
inline

Member Function Documentation

xercesc::BinInputStream* nidas::core::XMLFdInputSource::makeStream ( ) const
inline

Create an instance of a BinInputStream.

Pointer becomes the parser's property.

References fd, and name.

Member Data Documentation

int nidas::core::XMLFdInputSource::fd
protected

Referenced by makeStream().

std::string nidas::core::XMLFdInputSource::name
protected

Referenced by makeStream().


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