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

 

         

printingconsumerImpl.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_PRINTING_CONSUMER_IMPL_H
00012 #define ORCAIFACEIMPL_PRINTING_CONSUMER_IMPL_H
00013 
00014 #include <orcaifaceimpl/consumerImpl.h>
00015 #include <orcaobj/orcaobj.h>
00016 
00017 namespace orcaifaceimpl
00018 {
00019 
00030 template<class ProviderPrxType, class ConsumerType, class ConsumerPrxType, class ObjectType>
00031 class PrintingConsumerImpl : 
00032         public ConsumerImpl<ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>
00033 {
00034 using ConsumerImpl<ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>::context_;
00035 public:
00037     PrintingConsumerImpl( const orcaice::Context &context )
00038         : ConsumerImpl<ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>(context) {}
00039 
00041     virtual void handleData( const ObjectType& data ) 
00042     {
00043         context_.tracer().info( orcaobj::toString(data) ); 
00044     }
00045 };
00046 
00047 } // namespace
00048 
00049 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5