Fawkes API
Fawkes Development Version
|
Collect meta data about shared memory segments. More...
#include <>>
Public Member Functions | |
SharedMemoryImageBufferMetaDataCollector () | |
Constructor. More... | |
virtual | ~SharedMemoryImageBufferMetaDataCollector () |
Destructor. More... | |
virtual void | print_header () |
Print header of the table. More... | |
virtual void | print_footer () |
Print footer of the table. More... | |
virtual void | print_no_segments () |
Print this if no matching segment was found. More... | |
virtual void | print_no_orphaned_segments () |
Print this if no matching orphaned segment was found. More... | |
virtual void | print_info (const fawkes::SharedMemoryHeader *header, int shm_id, int semaphore, unsigned int mem_size, const void *memptr) |
Print info about segment. More... | |
std::list< SharedMemoryImageBufferMetaData > & | meta_data () |
Get meta data. More... | |
![]() | |
virtual | ~SharedMemoryLister () |
virtual destructor More... | |
Collect meta data about shared memory segments.
Definition at line 155 of file shm_image.h.
firevision::SharedMemoryImageBufferMetaDataCollector::SharedMemoryImageBufferMetaDataCollector | ( | ) |
Constructor.
Definition at line 1045 of file shm_image.cpp.
|
virtual |
Destructor.
Definition at line 1051 of file shm_image.cpp.
|
inline |
|
virtual |
Print footer of the table.
This should fit on the terminal and thus have a width of at most 79 columns.
Implements fawkes::SharedMemoryLister.
Definition at line 1063 of file shm_image.cpp.
|
virtual |
Print header of the table.
This should fit on the terminal and thus have a width of at most 79 columns.
Implements fawkes::SharedMemoryLister.
Definition at line 1057 of file shm_image.cpp.
|
virtual |
Print info about segment.
This method is called for every matching shared memory segment. You should print a line of information (maybe more than one line if needed) about the segment.
header | The data-specific header |
shm_id | The id of the shared memory segment |
semaphore | Semaphore key of the given shared memory segment |
mem_size | the total memory size |
memptr | pointer to the data segment. |
Implements fawkes::SharedMemoryLister.
Definition at line 1081 of file shm_image.cpp.
References firevision::SharedMemoryImageBufferHeader::colorspace(), firevision::SharedMemoryImageBufferHeader::frame_id(), firevision::SharedMemoryImageBufferHeader::height(), firevision::SharedMemoryImageBufferHeader::image_id(), and firevision::SharedMemoryImageBufferHeader::width().
|
virtual |
Print this if no matching orphaned segment was found.
Called by SharedMemory::erase_orphaned() if no matching segment could be found.
Implements fawkes::SharedMemoryLister.
Definition at line 1075 of file shm_image.cpp.
|
virtual |
Print this if no matching segment was found.
Called by SharedMemory if no matching segment could be found.
Implements fawkes::SharedMemoryLister.
Definition at line 1069 of file shm_image.cpp.