Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
blackboard.cpp
1
2
/***************************************************************************
3
* blackboard.cpp - BlackBoard aspect for Fawkes
4
*
5
* Created: Thu Jan 11 16:28:58 2007
6
* Copyright 2006-2007 Tim Niemueller [www.niemueller.de]
7
****************************************************************************/
8
9
/* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version. A runtime exception applies to
13
* this software (see LICENSE.GPL_WRE file mentioned below for details).
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_WRE file in the doc directory.
21
*/
22
23
#include <aspect/blackboard.h>
24
25
namespace
fawkes {
26
#if 0
/* just to make Emacs auto-indent happy */
27
}
28
#endif
29
30
/** @class BlackBoardAspect <aspect/blackboard.h>
31
* Thread aspect to access to BlackBoard.
32
* Give this aspect to your thread to gain access to the BlackBoard.
33
* It is guaranteed that if used properly from within plugins that the
34
* blackboard member has been initialized properly.
35
* @ingroup Aspects
36
* @author Tim Niemueller
37
*/
38
39
40
/** @var BlackBoard * BlackBoardAspect::blackboard
41
* This is the BlackBoard instance you can use to interact with the
42
* BlackBoard. It is set when the thread starts.
43
*/
44
45
/** Constructor. */
46
BlackBoardAspect::BlackBoardAspect()
47
{
48
add_aspect(
"BlackBoardAspect"
);
49
blackboard = 0;
50
}
51
52
53
/** Virtual empty destructor. */
54
BlackBoardAspect::~BlackBoardAspect()
55
{
56
}
57
58
59
/** Init BlackBoard aspect.
60
* This set the BlackBoard interface manager that can be used to access the
61
* BB.
62
* It is guaranteed that this is called for a BlackBoardThread before start
63
* is called (when running regularly inside Fawkes).
64
* @param bb BlackBoard to use
65
*/
66
void
67
BlackBoardAspect::init_BlackBoardAspect(
BlackBoard
*bb)
68
{
69
blackboard = bb;
70
}
71
72
}
// end namespace fawkes
fawkes::BlackBoard
The BlackBoard abstract class.
Definition:
blackboard.h:49
src
libs
aspect
blackboard.cpp
Generated by
1.8.5