SharedMemoryLookupTableLister Class Reference
Shared memory lookup table lister. More...
#include <fvutils/ipc/shm_lut.h>

Public Member Functions | |
| SharedMemoryLookupTableLister () | |
| Constructor. | |
| virtual | ~SharedMemoryLookupTableLister () |
| Destructor. | |
| virtual void | print_header () |
| Print header of the table. | |
| virtual void | print_footer () |
| Print footer of the table. | |
| virtual void | print_no_segments () |
| Print this if no matching segment was found. | |
| virtual void | print_no_orphaned_segments () |
| Print this if no matching orphaned segment was found. | |
| virtual void | print_info (const fawkes::SharedMemoryHeader *header, int shm_id, int semaphore, unsigned int mem_size, const void *memptr) |
| Print info about segment. | |
Detailed Description
Shared memory lookup table lister.Definition at line 92 of file shm_lut.h.
Constructor & Destructor Documentation
| SharedMemoryLookupTableLister::SharedMemoryLookupTableLister | ( | ) |
| SharedMemoryLookupTableLister::~SharedMemoryLookupTableLister | ( | ) | [virtual] |
Member Function Documentation
| void SharedMemoryLookupTableLister::print_footer | ( | ) | [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 576 of file shm_lut.cpp.
| void SharedMemoryLookupTableLister::print_header | ( | ) | [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 562 of file shm_lut.cpp.
| void SharedMemoryLookupTableLister::print_info | ( | const fawkes::SharedMemoryHeader * | header, | |
| int | shm_id, | |||
| int | semaphore, | |||
| unsigned int | mem_size, | |||
| const void * | memptr | |||
| ) | [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.
- Parameters:
-
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 597 of file shm_lut.cpp.
References SharedMemoryLookupTableHeader::height(), SharedMemoryLookupTableHeader::lut_id(), and SharedMemoryLookupTableHeader::width().
| void SharedMemoryLookupTableLister::print_no_orphaned_segments | ( | ) | [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 591 of file shm_lut.cpp.
| void SharedMemoryLookupTableLister::print_no_segments | ( | ) | [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 582 of file shm_lut.cpp.
The documentation for this class was generated from the following files:
- src/firevision/fvutils/ipc/shm_lut.h
- src/firevision/fvutils/ipc/shm_lut.cpp

