27#ifndef NIDAS_CORE_UNIXIOCHANNEL_H
28#define NIDAS_CORE_UNIXIOCHANNEL_H
38namespace nidas {
namespace core {
72 rqstr->connected(
this);
132 size_t write(
const struct iovec* iov,
int iovcnt)
164 "UnixIOChannel::fromDOMElement not supported");
Interface for an object that requests connections to Inputs or Outputs.
Definition IOChannel.h:56
A channel for Input or Output of data.
Definition IOChannel.h:65
Simple implementation of an IOChannel, over an opened file descriptor.
Definition UnixIOChannel.h:43
bool isNonBlocking() const
Do fcntl to determine value of O_NONBLOCK flag.
Definition UnixIOChannel.cc:48
void requestConnection(IOChannelRequester *rqstr)
RequestConnection just returns connected immediately.
Definition UnixIOChannel.h:70
UnixIOChannel * clone() const
Clone invokes default copy constructor.
Definition UnixIOChannel.h:63
const std::string & getName() const
Definition UnixIOChannel.h:154
~UnixIOChannel()
Destructor.
Definition UnixIOChannel.h:58
void close()
Definition UnixIOChannel.h:143
size_t write(const struct iovec *iov, int iovcnt)
Do the actual hardware write.
Definition UnixIOChannel.h:132
void fromDOMElement(const xercesc::DOMElement *)
Definition UnixIOChannel.h:161
UnixIOChannel(const std::string &name, int fd)
Constructor.
Definition UnixIOChannel.h:50
std::string _name
Definition UnixIOChannel.h:177
int _fd
Definition UnixIOChannel.h:179
virtual bool isNewInput() const
Some IOChannels, namely FileSet, which opens successive files, need to indicate when a read is from t...
Definition UnixIOChannel.h:99
IOChannel * connect()
Pretty simple, we're connected already.
Definition UnixIOChannel.h:80
size_t write(const void *buf, size_t len)
Do the actual hardware write.
Definition UnixIOChannel.h:119
void setNonBlocking(bool val)
Set the state of O_NONBLOCK with fcntl system call.
Definition UnixIOChannel.cc:31
UnixIOChannel(const UnixIOChannel &x)
Constructor.
Definition UnixIOChannel.h:172
size_t read(void *buf, size_t len)
Do the actual hardware read.
Definition UnixIOChannel.h:106
bool _newInput
Definition UnixIOChannel.h:181
void setName(const std::string &val)
Definition UnixIOChannel.h:156
int getFd() const
Definition UnixIOChannel.h:149
Definition IOException.h:37
Definition InvalidParameterException.h:35
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
int len
Definition sing.cc:948
int fd
Definition twod.c:56