#include <single_copy.h>
Inheritance diagram for WorldModelSingleCopyFuser:
Public Member Functions | |
WorldModelSingleCopyFuser (fawkes::BlackBoard *blackboard, const char *type, const char *from_id, const char *to_id) | |
Constructor. | |
~WorldModelSingleCopyFuser () | |
Destructor. | |
virtual void | fuse () |
The single function that makes fusers work. |
This fuser simply copies the data of one interface to another of the same type.
Definition at line 33 of file single_copy.h.
WorldModelSingleCopyFuser::WorldModelSingleCopyFuser | ( | fawkes::BlackBoard * | blackboard, | |
const char * | type, | |||
const char * | from_id, | |||
const char * | to_id | |||
) |
Constructor.
blackboard | BlackBoard | |
type | interface type of both interfaces | |
from_id | ID of the interface to copy from | |
to_id | ID of the interface to copy to |
Definition at line 43 of file single_copy.cpp.
References fawkes::Interface::copy_values(), fawkes::BlackBoard::open_for_reading(), fawkes::BlackBoard::open_for_writing(), fawkes::Interface::read(), and fawkes::Interface::write().
WorldModelSingleCopyFuser::~WorldModelSingleCopyFuser | ( | ) |
void WorldModelSingleCopyFuser::fuse | ( | ) | [virtual] |
The single function that makes fusers work.
In this method fusers shall read from their source interfaces, process the data and write to their output interfaces.
Implements WorldModelFuser.
Definition at line 67 of file single_copy.cpp.
References fawkes::Interface::copy_values(), fawkes::Interface::has_writer(), fawkes::Interface::read(), and fawkes::Interface::write().