Fawkes API
Fawkes Development Version
|
Format list output for shared memory segments. More...
#include <shm_lister.h>
Public Member Functions | |
virtual | ~SharedMemoryLister () |
virtual destructor More... | |
virtual void | print_header ()=0 |
Print header of the table. More... | |
virtual void | print_footer ()=0 |
Print footer of the table. More... | |
virtual void | print_no_segments ()=0 |
Print this if no matching segment was found. More... | |
virtual void | print_no_orphaned_segments ()=0 |
Print this if no matching orphaned segment was found. More... | |
virtual void | print_info (const SharedMemoryHeader *header, int shm_id, int semaphore, unsigned int mem_size, const void *memptr)=0 |
Print info about segment. More... | |
Format list output for shared memory segments.
Implement this function specific to your SharedMemoryHeader to printout data about the shared memory segments.
Definition at line 38 of file shm_lister.h.
|
inlinevirtual |
virtual destructor
Definition at line 42 of file shm_lister.h.
References print_footer(), print_header(), print_info(), print_no_orphaned_segments(), and print_no_segments().
|
pure virtual |
Print footer of the table.
This should fit on the terminal and thus have a width of at most 79 columns.
Implemented in firevision::SharedMemoryImageBufferMetaDataCollector, firevision::SharedMemoryImageBufferLister, firevision::SharedMemoryLookupTableLister, and fawkes::BlackBoardSharedMemoryLister.
Referenced by fawkes::SharedMemory::erase(), fawkes::SharedMemory::erase_orphaned(), fawkes::SharedMemory::list(), and ~SharedMemoryLister().
|
pure virtual |
Print header of the table.
This should fit on the terminal and thus have a width of at most 79 columns.
Implemented in firevision::SharedMemoryImageBufferMetaDataCollector, firevision::SharedMemoryImageBufferLister, firevision::SharedMemoryLookupTableLister, and fawkes::BlackBoardSharedMemoryLister.
Referenced by fawkes::SharedMemory::erase(), fawkes::SharedMemory::erase_orphaned(), fawkes::SharedMemory::list(), and ~SharedMemoryLister().
|
pure 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. |
Implemented in firevision::SharedMemoryImageBufferMetaDataCollector, firevision::SharedMemoryImageBufferLister, firevision::SharedMemoryLookupTableLister, and fawkes::BlackBoardSharedMemoryLister.
Referenced by fawkes::SharedMemory::erase(), fawkes::SharedMemory::erase_orphaned(), fawkes::SharedMemory::list(), and ~SharedMemoryLister().
|
pure virtual |
Print this if no matching orphaned segment was found.
Called by SharedMemory::erase_orphaned() if no matching segment could be found.
Implemented in firevision::SharedMemoryImageBufferMetaDataCollector, firevision::SharedMemoryImageBufferLister, firevision::SharedMemoryLookupTableLister, and fawkes::BlackBoardSharedMemoryLister.
Referenced by fawkes::SharedMemory::erase_orphaned(), and ~SharedMemoryLister().
|
pure virtual |
Print this if no matching segment was found.
Called by SharedMemory if no matching segment could be found.
Implemented in firevision::SharedMemoryImageBufferMetaDataCollector, firevision::SharedMemoryImageBufferLister, firevision::SharedMemoryLookupTableLister, and fawkes::BlackBoardSharedMemoryLister.
Referenced by fawkes::SharedMemory::erase(), fawkes::SharedMemory::erase_orphaned(), fawkes::SharedMemory::list(), and ~SharedMemoryLister().