|
Fawkes API
Fawkes Development Version
|
FUSE image list content. More...
#include <>>

Public Member Functions | |
| FuseImageListContent () | |
| Constructor. | |
| FuseImageListContent (uint32_t type, void *payload, size_t payload_size) | |
| Parsing constructor. | |
| ~FuseImageListContent () | |
| Destructor. | |
| void | add_imageinfo (const char *image_id, colorspace_t colorspace, unsigned int pixel_width, unsigned int pixel_height) |
| Add image info. | |
| void | reset_iterator () |
| Reset iterator. | |
| bool | has_next () |
| Check if another image info is available. | |
| FUSE_imageinfo_t * | next () |
| Get next image info. | |
| virtual void | serialize () |
| Serialize message content. | |
Public Member Functions inherited from firevision::FuseMessageContent | |
| FuseMessageContent () | |
| Constructor. | |
| virtual | ~FuseMessageContent () |
| Virtual empty destructor. | |
| virtual void * | payload () const |
| Return pointer to payload. | |
| virtual size_t | payload_size () const |
| Return payload size. | |
| void | free_payload () |
| Free message payload. | |
Additional Inherited Members | |
Protected Member Functions inherited from firevision::FuseMessageContent | |
| void | copy_payload (size_t offset, void *buf, size_t len) |
| Copy payload into payload buffer to a specified offset. | |
Protected Attributes inherited from firevision::FuseMessageContent | |
| void * | _payload |
| Pointer to payload. | |
| size_t | _payload_size |
| Payloda size. | |
FUSE image list content.
This content provides means to send an arbitrary length list of image information chunks.
Definition at line 36 of file fuse_imagelist_content.h.
| firevision::FuseImageListContent::FuseImageListContent | ( | ) |
| firevision::FuseImageListContent::FuseImageListContent | ( | uint32_t | type, |
| void * | payload, | ||
| size_t | payload_size | ||
| ) |
Parsing constructor.
Can be used with the FuseMessage::msgc() method to get correctly parsed output.
| type | message type, must be FUSE_MT_IMAGE_LIST |
| payload | payload |
| payload_size | size of payload |
| TypeMismatchException | thrown if the type is not FUSE_MT_IMAGE_LIST |
Definition at line 67 of file fuse_imagelist_content.cpp.
References firevision::FUSE_imagelist_message_t::image_list.
| firevision::FuseImageListContent::~FuseImageListContent | ( | ) |
Destructor.
Definition at line 81 of file fuse_imagelist_content.cpp.
| void firevision::FuseImageListContent::add_imageinfo | ( | const char * | image_id, |
| colorspace_t | colorspace, | ||
| unsigned int | pixel_width, | ||
| unsigned int | pixel_height | ||
| ) |
Add image info.
This can only be called on contents that have been newly created, it is a bug to call this method on contents read from the network.
| image_id | image ID |
| colorspace | colorspace |
| pixel_width | width of image in pixels |
| pixel_height | height of image in pixels |
Definition at line 96 of file fuse_imagelist_content.cpp.
References firevision::FUSE_imageinfo_t::buffer_size, firevision::FUSE_imageinfo_t::colorspace, firevision::FUSE_imageinfo_t::height, firevision::FUSE_imageinfo_t::image_id, and firevision::FUSE_imageinfo_t::width.
Referenced by firevision::FuseServerClientThread::process_getimagelist_message().
| bool firevision::FuseImageListContent::has_next | ( | ) |
Check if another image info is available.
Definition at line 124 of file fuse_imagelist_content.cpp.
Referenced by firevision::FuseImageListWidget::fuse_inbound_received(), firevision::NetworkCamera::fuse_inbound_received(), and FireVisionNetworkTool::fuse_inbound_received().
| FUSE_imageinfo_t * firevision::FuseImageListContent::next | ( | ) |
Get next image info.
| TypeMismatchException | thrown if the content contained invalid data |
| OutOfBoundsException | thrown if no more data is available |
Definition at line 136 of file fuse_imagelist_content.cpp.
Referenced by firevision::FuseImageListWidget::fuse_inbound_received(), firevision::NetworkCamera::fuse_inbound_received(), and FireVisionNetworkTool::fuse_inbound_received().
| void firevision::FuseImageListContent::reset_iterator | ( | ) |
Reset iterator.
Definition at line 114 of file fuse_imagelist_content.cpp.
|
virtual |
Serialize message content.
Generate a single contiguous buffer. Make _payload point to this buffer and _payload_size contain the size of the buffer.
Implements firevision::FuseMessageContent.
Definition at line 150 of file fuse_imagelist_content.cpp.