Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
WorldModelSingleCopyFuser Class Reference

Single interface copy fuser. More...

#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. More...
 
 ~WorldModelSingleCopyFuser ()
 Destructor. More...
 
virtual void fuse ()
 The single function that makes fusers work. More...
 
- Public Member Functions inherited from WorldModelFuser
virtual ~WorldModelFuser ()
 Virtual empty destructor. More...
 

Detailed Description

Single interface copy fuser.

This fuser simply copies the data of one interface to another of the same type.

Author
Tim Niemueller

Definition at line 33 of file single_copy.h.

Constructor & Destructor Documentation

WorldModelSingleCopyFuser::WorldModelSingleCopyFuser ( fawkes::BlackBoard blackboard,
const char *  type,
const char *  from_id,
const char *  to_id 
)

Constructor.

Parameters
blackboardBlackBoard
typeinterface type of both interfaces
from_idID of the interface to copy from
to_idID of the interface to copy to

Definition at line 43 of file single_copy.cpp.

References fawkes::BlackBoard::open_for_reading(), fawkes::BlackBoard::open_for_writing(), and fawkes::Interface::read().

WorldModelSingleCopyFuser::~WorldModelSingleCopyFuser ( )

Destructor.

Definition at line 59 of file single_copy.cpp.

Member Function Documentation

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.


The documentation for this class was generated from the following files: