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 
29 namespace fawkes {
30 
31 class SharedMemoryHeader;
32 
34  public:
35 
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, int semaphore,
46  unsigned int mem_size, const void *memptr);
47 
48  private:
49  unsigned int num;
50 };
51 
52 } // end namespace fawkes
53 
54 #endif
Fawkes library namespace.
BlackBoardSharedMemoryLister()
Constructor.
Definition: lister.cpp:42
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:116
virtual void print_no_segments()
Print this if no matching segment was found.
Definition: lister.cpp:87
BlackBoard shared memory lister.
Definition: lister.h:33
virtual void print_footer()
Print footer of the table.
Definition: lister.cpp:77
Format list output for shared memory segments.
Definition: shm_lister.h:38
virtual void print_no_orphaned_segments()
Print this if no matching orphaned segment was found.
Definition: lister.cpp:98
virtual void print_header()
Print header of the table.
Definition: lister.cpp:59
virtual ~BlackBoardSharedMemoryLister()
Destructor.
Definition: lister.cpp:49
Interface for shared memory header.
Definition: shm.h:33