Fawkes API Fawkes Development Version
lister.h
1
2/***************************************************************************
3 * shmem_lister.h - BlackBoard shared memory lister
4 *
5 * Created: Fri Oct 20 11:40:09 2006
6 * Copyright 2006 Tim Niemueller [www.niemueller.de]
7 *
8 ****************************************************************************/
9
10/* This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version. A runtime exception applies to
14 * this software (see LICENSE.GPL_WRE file mentioned below for details).
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Library General Public License for more details.
20 *
21 * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22 */
23
24#ifndef _BLACKBOARD_SHMEM_LISTER_H_
25#define _BLACKBOARD_SHMEM_LISTER_H_
26
27#include <utils/ipc/shm_lister.h>
28
29namespace fawkes {
30
31class SharedMemoryHeader;
32
34{
35public:
38
39 virtual void print_header();
40 virtual void print_footer();
41 virtual void print_no_segments();
42 virtual void print_no_orphaned_segments();
43
44 virtual void print_info(const SharedMemoryHeader *header,
45 int shm_id,
46 int semaphore,
47 unsigned int mem_size,
48 const void * memptr);
49
50private:
51 unsigned int num;
52};
53
54} // end namespace fawkes
55
56#endif
BlackBoard shared memory lister.
Definition: lister.h:34
virtual void print_no_segments()
Print this if no matching segment was found.
Definition: lister.cpp:84
virtual void print_header()
Print header of the table.
Definition: lister.cpp:57
virtual void print_footer()
Print footer of the table.
Definition: lister.cpp:75
virtual void print_no_orphaned_segments()
Print this if no matching orphaned segment was found.
Definition: lister.cpp:94
virtual void print_info(const SharedMemoryHeader *header, int shm_id, int semaphore, unsigned int mem_size, const void *memptr)
Print info about segment.
Definition: lister.cpp:111
virtual ~BlackBoardSharedMemoryLister()
Destructor.
Definition: lister.cpp:48
BlackBoardSharedMemoryLister()
Constructor.
Definition: lister.cpp:42
Interface for shared memory header.
Definition: shm.h:34
Format list output for shared memory segments.
Definition: shm_lister.h:38
Fawkes library namespace.