orca-robotics


INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

REPOSITORY
Interfaces
Components
Libraries
Utilities
Software Map

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard
Wiki
login/pass: orca/orca

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

storingconsumerImpl.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010  
00011 #ifndef ORCAIFACEIMPL_STORING_CONSUMER_IMPL_H
00012 #define ORCAIFACEIMPL_STORING_CONSUMER_IMPL_H
00013 
00014 #include <gbxsickacfr/gbxiceutilacfr/store.h>
00015 #include <orcaifaceimpl/consumerImpl.h>
00016 
00017 namespace orcaifaceimpl
00018 {
00019 
00024 template<class ProviderPrxType, class ConsumerType, class ConsumerPrxType, class ObjectType>
00025 class StoringConsumerImpl : 
00026         public ConsumerImpl<ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>
00027 {
00028 public:
00030     StoringConsumerImpl( const orcaice::Context &context )
00031         : ConsumerImpl<ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>(context) {}
00032 
00034     gbxsickacfr::gbxiceutilacfr::Store<ObjectType> &store() { return store_; }
00035 
00037     virtual void handleData( const ObjectType& data ) 
00038     {
00039         store_.set( data ); 
00040     }
00041 
00042 private:
00043     gbxsickacfr::gbxiceutilacfr::Store<ObjectType> store_;
00044 };
00045 
00046 } // namespace
00047 
00048 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5