Fawkes API
Fawkes Development Version
skel_if_observer.h
1
2
/***************************************************************************
3
* skel_if_observer.h - Skeleton interface observer
4
*
5
* Created: Sat Apr 02 18:14:37 2011 (RoboCup German Open 2011, Magdeburg)
6
* Copyright 2006-2011 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.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef _PLUGINS_OPENNI_UTILS_SKEL_IF_OBSERVER_H_
24
#define _PLUGINS_OPENNI_UTILS_SKEL_IF_OBSERVER_H_
25
26
#include <blackboard/interface_observer.h>
27
#include <plugins/openni/utils/types.h>
28
29
#include <queue>
30
#include <string>
31
32
namespace
fawkes
{
33
class
BlackBoard;
34
class
Mutex;
35
36
namespace
openni {
37
38
class
SkelIfObserver
:
public
BlackBoardInterfaceObserver
39
{
40
public
:
41
SkelIfObserver
(
BlackBoard
*bb, UserMap &users);
42
~SkelIfObserver
();
43
44
virtual
void
bb_interface_created
(
const
char
*type,
const
char
*
id
)
throw
();
45
46
void
process_queue
();
47
48
private
:
49
UserMap & users_;
50
BlackBoard
* bb_;
51
Mutex
* queue_lock_;
52
unsigned
int
active_queue_;
53
std::queue<std::string> queues_[2];
54
};
55
56
}
// namespace openni
57
}
// end namespace fawkes
58
59
#endif
fawkes::openni::SkelIfObserver::~SkelIfObserver
~SkelIfObserver()
Destructor.
Definition:
skel_if_observer.cpp:70
fawkes::openni::SkelIfObserver::bb_interface_created
virtual void bb_interface_created(const char *type, const char *id)
BlackBoard interface created notification.
Definition:
skel_if_observer.cpp:77
fawkes::Mutex
Mutex mutual exclusion lock.
Definition:
mutex.h:33
fawkes::openni::SkelIfObserver::SkelIfObserver
SkelIfObserver(BlackBoard *bb, UserMap &users)
Constructor.
Definition:
skel_if_observer.cpp:44
fawkes::BlackBoard
The BlackBoard abstract class.
Definition:
blackboard.h:46
fawkes::openni::SkelIfObserver::process_queue
void process_queue()
Process internal queue.
Definition:
skel_if_observer.cpp:90
fawkes
Fawkes library namespace.
fawkes::BlackBoardInterfaceObserver
BlackBoard interface observer.
Definition:
interface_observer.h:37
fawkes::openni::SkelIfObserver
Skeleton interface observer.
Definition:
skel_if_observer.h:39
src
plugins
openni
utils
skel_if_observer.h
Generated by
1.8.20