SharedMemoryImageBufferLister Class Reference

Shared memory image buffer lister. More...

#include <fvutils/ipc/shm_image.h>

Inheritance diagram for SharedMemoryImageBufferLister:

List of all members.


Public Member Functions

 SharedMemoryImageBufferLister ()
 Constructor.
virtual ~SharedMemoryImageBufferLister ()
 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 image buffer lister.

Definition at line 108 of file shm_image.h.


Constructor & Destructor Documentation

SharedMemoryImageBufferLister::SharedMemoryImageBufferLister (  ) 

Constructor.

Definition at line 824 of file shm_image.cpp.

SharedMemoryImageBufferLister::~SharedMemoryImageBufferLister (  )  [virtual]

Destructor.

Definition at line 830 of file shm_image.cpp.


Member Function Documentation

void SharedMemoryImageBufferLister::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 850 of file shm_image.cpp.

void SharedMemoryImageBufferLister::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 836 of file shm_image.cpp.

void SharedMemoryImageBufferLister::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 870 of file shm_image.cpp.

References SharedMemoryImageBufferHeader::colorspace(), SharedMemoryImageBufferHeader::height(), SharedMemoryImageBufferHeader::image_id(), and SharedMemoryImageBufferHeader::width().

void SharedMemoryImageBufferLister::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 863 of file shm_image.cpp.

void SharedMemoryImageBufferLister::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 856 of file shm_image.cpp.


The documentation for this class was generated from the following files: