Image Component Library (ICL)
|
Publisher, that can be used to publish images via SharedMemorySegment. More...
#include <SharedMemoryPublisher.h>
Public Member Functions | |
SharedMemoryPublisher (const std::string &memorySegmentName="") throw (utils::ICLException) | |
Creates a new publisher instance. | |
~SharedMemoryPublisher () | |
Destructor. | |
void | createPublisher (const std::string &memorySegmentName="") throw (utils::ICLException) |
sets the publisher to use a new segment | |
void | publish (const core::ImgBase *image) |
publishs given image | |
virtual void | send (const core::ImgBase *image) |
wraps publish to implement ImageOutput interface | |
std::string | getMemorySegmentName () const throw (utils::ICLException) |
returns current memory segment name | |
Private Attributes | |
Data * | m_data |
Publisher, that can be used to publish images via SharedMemorySegment.
icl::io::SharedMemoryPublisher::SharedMemoryPublisher | ( | const std::string & | memorySegmentName = "" | ) | throw (utils::ICLException) |
Creates a new publisher instance.
If memorySegmentName is "", no connection is performed
Destructor.
void icl::io::SharedMemoryPublisher::createPublisher | ( | const std::string & | memorySegmentName = "" | ) | throw (utils::ICLException) |
sets the publisher to use a new segment
std::string icl::io::SharedMemoryPublisher::getMemorySegmentName | ( | ) | const throw (utils::ICLException) |
returns current memory segment name
void icl::io::SharedMemoryPublisher::publish | ( | const core::ImgBase * | image | ) |
publishs given image
virtual void icl::io::SharedMemoryPublisher::send | ( | const core::ImgBase * | image | ) | [inline, virtual] |
wraps publish to implement ImageOutput interface
Implements icl::io::ImageOutput.
Data* icl::io::SharedMemoryPublisher::m_data [private] |
intenal data
Reimplemented from icl::io::ImageCompressor.