1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @file BlackBoardInterface.h
*
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a>
* Implementation of class BlackBoardInterface
* Implements an interface to access the blackboard
*
*/

#ifndef _BlackBoardInterface_h_
#define _BlackBoardInterface_h_

//#include "BlackBoard.h"
class BlackBoard;

class BlackBoardInterface<--- class 'BlackBoardInterface' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory.
{
private:
  BlackBoard* theBlackBoard;

  /** indicates whether this object has its own blackboard*/
  bool blackBoardOwner;

protected:
  /** inherits the blackboard */
  BlackBoardInterface(BlackBoard* theBlackBoard);

  /** create its own blackboard */
  BlackBoardInterface();

  virtual ~BlackBoardInterface();

  /** getters */
  BlackBoard& getBlackBoard();
  const BlackBoard& getBlackBoard() const;
};

#endif //_BlackBoardInterface_h_