![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Buffered channel providing STL-like stream functionality. More...
#include <mdsStreamChannel.h>

Public Types | |
| enum | { SIZE = 512 } |
| Size of the internal buffer. More... | |
| 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 | |
| COStreamChannel (CChannel *pChannel) | |
| Default constructor. | |
| CChannel * | getChannel () |
| Returns pointer to the output channel. | |
| int | getReferencesCount () const |
| Returns the number of references. | |
| std::ostream & | getStream () |
| Returns the output stream. | |
| bool | isOnHeap () const |
| Returns true if the object is allocated on the heap. | |
| MDS_SHAREDPTR (COStreamChannel) | |
| Smart pointer type. | |
| virtual int | overflow (int c=EOF) |
| Implementation of virtual functions (std::streambuf). | |
| void | setChannel (CChannel *pChannel) |
| Sets the output channel. | |
| virtual int | sync () |
| virtual int | underflow () |
| virtual | ~COStreamChannel () |
| Virtual destructor. | |
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. | |
| char | m_pcBuffer [SIZE+1] |
| Internal buffer. | |
| char * | m_pcBufferEnd |
| Pointer to the buffer end. | |
| mds::base::CScopedPtr < std::ostream > | m_pStream |
| Output stream. | |
| CChannelPtr | m_spChannel |
| Output channel. | |
Buffered channel providing STL-like stream functionality.
anonymous enum [inherited] |
Templates that require members of the CObject class can use this enum to check the existence.
| mds::mod::COStreamChannel::COStreamChannel | ( | CChannel * | pChannel | ) |
Default constructor.
| mds::mod::COStreamChannel::~COStreamChannel | ( | ) | [virtual] |
Virtual destructor.
| void mds::base::CObject::addReference | ( | ) | const [protected, inherited] |
Increase the reference counter.
| bool mds::base::CObject::delReference | ( | ) | const [protected, inherited] |
Decrease the reference counter.
Returns pointer to the output channel.
| int mds::base::CObject::getReferencesCount | ( | ) | const [inherited] |
Returns the number of references.
| std::ostream& mds::mod::COStreamChannel::getStream | ( | ) |
Returns the output stream.
| bool mds::base::CObject::isOnHeap | ( | ) | const [inherited] |
Returns true if the object is allocated on the heap.
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::mod::COStreamChannel::overflow | ( | int | c = EOF | ) | [virtual] |
Implementation of virtual functions (std::streambuf).
| void mds::mod::COStreamChannel::setChannel | ( | CChannel * | pChannel | ) |
Sets the output channel.
| int mds::mod::COStreamChannel::sync | ( | ) | [virtual] |
| int mds::mod::COStreamChannel::underflow | ( | ) | [virtual] |
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.
char mds::mod::COStreamChannel::m_pcBuffer[SIZE+1] [protected] |
Internal buffer.
char* mds::mod::COStreamChannel::m_pcBufferEnd [protected] |
Pointer to the buffer end.
mds::base::CScopedPtr<std::ostream> mds::mod::COStreamChannel::m_pStream [protected] |
Output stream.
CChannelPtr mds::mod::COStreamChannel::m_spChannel [protected] |
Output channel.
1.7.6.1