#include <UnixPipe.h>
Inheritance diagram for OS::UnixPipe:
Public Member Functions | |
virtual String * | className (void) const |
Answer receiver class name. | |
virtual void | close (void) |
virtual void | closeInput (void) |
virtual void | closeOutput (void) |
virtual Core::FileAccessor * | inputAccessor (void) |
virtual Core::FileAccessor * | outputAccessor (void) |
virtual int | readInto (ByteArray *buffer) |
virtual int | readInto (ByteArray *buffer, long startIndex, long count) |
virtual int | writeFrom (ByteArray *buffer) |
virtual int | writeFrom (ByteArray *buffer, long startIndex, long count) |
virtual void | seekTo (long position) |
virtual ExternalReadStream * | readStream (void) |
virtual ExternalWriteStream * | writeStream (void) |
Static Public Member Functions | |
static UnixPipe * | openPair (void) |
Protected Member Functions | |
UnixPipe (Core::FileAccessor *in, Core::FileAccessor *out) | |
Protected Attributes | |
Core::FileAccessor * | input |
Core::FileAccessor * | output |
|
Definition at line 39 of file UnixPipe.cc. Referenced by openPair().
|
|
Answer receiver class name. Because there isn't any standard way to obtain class name this method comes to place. Every class should rewrite this method but many didn't (yet). Reimplemented from Core::IOAccessor. Definition at line 46 of file UnixPipe.cc. 00047 { 00048 return new String("UnixPipe"); 00049 }
|
|
Reimplemented from Core::IOAccessor. Definition at line 65 of file UnixPipe.cc. References closeInput(), and closeOutput(). 00066 { 00067 closeInput(); 00068 closeOutput(); 00069 }
|
|
Definition at line 71 of file UnixPipe.cc. References Core::FileAccessor::close(), and input. Referenced by close().
|
|
Definition at line 76 of file UnixPipe.cc. References Core::FileAccessor::close(), and output. Referenced by close().
|
|
Definition at line 82 of file UnixPipe.cc. References input. 00083 { 00084 return input; 00085 }
|
|
Definition at line 52 of file UnixPipe.cc. References UnixPipe(). 00053 { 00054 int fds[2]; 00055 00056 if (pipe(fds) < 0) { 00057 perror(__PRETTY_FUNCTION__); 00058 (new Error(new String("Cannot create pipe"), 00059 new String(__PRETTY_FUNCTION__)))->raise(); 00060 } 00061 return new UnixPipe(new FileAccessor(fds[1]), new FileAccessor(fds[0])); 00062 }
|
|
Definition at line 87 of file UnixPipe.cc. References output. 00088 { 00089 return output; 00090 }
|
|
Reimplemented from Core::IOAccessor. Definition at line 93 of file UnixPipe.cc. References output, and Core::FileAccessor::readInto().
|
|
Reimplemented from Core::IOAccessor. Definition at line 62 of file UnixPipe.h. 00063 { return IOAccessor::readInto(buffer); }
|
|
Reimplemented from Core::IOAccessor. Definition at line 110 of file UnixPipe.cc. References output, and Core::IOAccessor::readStream(). 00111 { 00112 return output->readStream(); 00113 }
|
|
Reimplemented from Core::IOAccessor. Definition at line 104 of file UnixPipe.cc. References Core::Object::shouldNotImplement(). 00105 { 00106 shouldNotImplement(__PRETTY_FUNCTION__); 00107 }
|
|
Reimplemented from Core::IOAccessor. Definition at line 98 of file UnixPipe.cc. References input, and Core::FileAccessor::writeFrom().
|
|
Reimplemented from Core::IOAccessor. Definition at line 66 of file UnixPipe.h. 00067 { return IOAccessor::writeFrom(buffer); }
|
|
Reimplemented from Core::IOAccessor. Definition at line 115 of file UnixPipe.cc. References input, and Core::IOAccessor::writeStream(). 00116 { 00117 return input->writeStream(); 00118 }
|
|
Definition at line 39 of file UnixPipe.h. Referenced by closeInput(), inputAccessor(), UnixPipe(), writeFrom(), and writeStream(). |
|
Definition at line 40 of file UnixPipe.h. Referenced by closeOutput(), outputAccessor(), readInto(), readStream(), and UnixPipe(). |