nidas v1.2.3
|
Extension of xercesc::XMLFormatTarget support writing XML to an open device (socket for example). More...
#include <XMLFdFormatTarget.h>
Public Member Functions | |
XMLFdFormatTarget (const std::string &n, int f) | |
Constructor. | |
~XMLFdFormatTarget () | |
Destructor. | |
void | flush () |
void | writeChars (const XMLByte *const toWrite, const XMLSize_t count, xercesc::XMLFormatter *const) |
Implemention of virtual write method of xercesc::XMLFormatTarget. | |
Private Member Functions | |
void | insureCapacity (unsigned int count) |
XMLFdFormatTarget (const XMLFdFormatTarget &) | |
No copy. | |
XMLFdFormatTarget & | operator= (const XMLFdFormatTarget &) |
No assignment. | |
Private Attributes | |
std::string | name |
int | fd |
XMLByte * | fDataBuf |
unsigned int | fIndex |
unsigned int | fCapacity |
bool | _isSocket |
Extension of xercesc::XMLFormatTarget support writing XML to an open device (socket for example).
Constructor.
n | name of device - only used when reporting errors. |
f | unix file descriptor of device that is already open. |
References _isSocket, fCapacity, fd, fDataBuf, and nidas::core::getSample().
XMLFdFormatTarget::~XMLFdFormatTarget | ( | ) |
|
private |
No copy.
void XMLFdFormatTarget::flush | ( | ) |
References _isSocket, fd, fDataBuf, fIndex, nidas::core::getSample(), and name.
Referenced by insureCapacity().
References fCapacity, fDataBuf, fIndex, flush(), and nidas::core::getSample().
Referenced by writeChars().
|
private |
No assignment.
void XMLFdFormatTarget::writeChars | ( | const XMLByte *const | toWrite, |
const XMLSize_t | count, | ||
xercesc::XMLFormatter * const | ) |
Implemention of virtual write method of xercesc::XMLFormatTarget.
Does buffered writes to the file descriptor.
References fDataBuf, fIndex, nidas::core::getSample(), and insureCapacity().
|
private |
Referenced by flush(), and XMLFdFormatTarget().
Referenced by insureCapacity(), and XMLFdFormatTarget().
|
private |
Referenced by flush(), and XMLFdFormatTarget().
|
private |
Referenced by flush(), insureCapacity(), writeChars(), XMLFdFormatTarget(), and ~XMLFdFormatTarget().
Referenced by flush(), insureCapacity(), and writeChars().
|
private |
Referenced by flush().