![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Named pipe. More...
#include <mdsNamedPipe.h>

Public Types | |
| enum | { CLASS_OBJECT } |
| Templates that require members of the CObject class can use this enum to check the existence. More... | |
| enum | { HEAP_OBJECT = 0x70616568 } |
| Signature used to recognize objects on the heap. More... | |
Public Member Functions | |
| CNamedPipe (const std::string &sName, int Type) | |
| Constructor. | |
| bool | connect (unsigned uTimeout) |
| Connects to a specified named pipe. | |
| void | disconnect () |
| Disconnects the named pipe. | |
| int | getReferencesCount () const |
| Returns the number of references. | |
| bool | isConnected () |
| Returns true if the pipe is successfully connected. | |
| bool | isOnHeap () const |
| Returns true if the object is allocated on the heap. | |
| bool | listen (unsigned uTimeout) |
| Listens to a specified named pipe. | |
| MDS_SHAREDPTR (CNamedPipe) | |
| Smart pointer type. | |
| int | read (char *pData, int iLength) |
| Reads 'iLength' bytes from the named pipe. | |
| int | state () const |
| Returns actual state of the pipe. | |
| int | type () const |
| Returns type of the named pipe. | |
| bool | wait (unsigned uTimeout) |
| Waits for data. | |
| bool | write (const char *pData, int iLength) |
| Writes data to the named pipe. | |
| virtual | ~CNamedPipe () |
| Destuctor. | |
Static Public Member Functions | |
| static void * | operator new (std::size_t Size) |
| Allocates a new object on the heap. | |
Protected Member Functions | |
| void | addReference () const |
| Increase the reference counter. | |
| bool | delReference () const |
| Decrease the reference counter. | |
Protected Attributes | |
| int | m_iHeapObject |
| Flag initialized if the object is on the heap. | |
| int | m_iReferences |
| The number of references to the object. | |
| std::string | m_sName |
| Name of the pipe. | |
| int | m_State |
| State of the pipe. | |
| int | m_Type |
| Type of the named pipe. | |
Named pipe.
anonymous enum [inherited] |
Templates that require members of the CObject class can use this enum to check the existence.
| mds::sys::CNamedPipe::CNamedPipe | ( | const std::string & | sName, |
| int | Type | ||
| ) |
Constructor.
| virtual mds::sys::CNamedPipe::~CNamedPipe | ( | ) | [virtual] |
Destuctor.
| void mds::base::CObject::addReference | ( | ) | const [protected, inherited] |
Increase the reference counter.
| bool mds::sys::CNamedPipe::connect | ( | unsigned | uTimeout | ) |
Connects to a specified named pipe.
| bool mds::base::CObject::delReference | ( | ) | const [protected, inherited] |
Decrease the reference counter.
| void mds::sys::CNamedPipe::disconnect | ( | ) |
Disconnects the named pipe.
| int mds::base::CObject::getReferencesCount | ( | ) | const [inherited] |
Returns the number of references.
| bool mds::sys::CNamedPipe::isConnected | ( | ) |
Returns true if the pipe is successfully connected.
| bool mds::base::CObject::isOnHeap | ( | ) | const [inherited] |
Returns true if the object is allocated on the heap.
| bool mds::sys::CNamedPipe::listen | ( | unsigned | uTimeout | ) |
Listens to a specified named pipe.
Smart pointer type.
| static void* mds::base::CObject::operator new | ( | std::size_t | Size | ) | [static, inherited] |
Allocates a new object on the heap.
| int mds::sys::CNamedPipe::read | ( | char * | pData, |
| int | iLength | ||
| ) |
Reads 'iLength' bytes from the named pipe.
| int mds::sys::CNamedPipe::state | ( | ) | const |
Returns actual state of the pipe.
| int mds::sys::CNamedPipe::type | ( | ) | const |
Returns type of the named pipe.
| bool mds::sys::CNamedPipe::wait | ( | unsigned | uTimeout | ) |
Waits for data.
| bool mds::sys::CNamedPipe::write | ( | const char * | pData, |
| int | iLength | ||
| ) |
Writes data to the named pipe.
int mds::base::CObject::m_iHeapObject [mutable, protected, inherited] |
Flag initialized if the object is on the heap.
int mds::base::CObject::m_iReferences [mutable, protected, inherited] |
The number of references to the object.
std::string mds::sys::CNamedPipe::m_sName [protected] |
Name of the pipe.
int mds::sys::CNamedPipe::m_State [protected] |
State of the pipe.
int mds::sys::CNamedPipe::m_Type [protected] |
Type of the named pipe.
1.7.6.1