INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

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-2009 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 
00016 namespace orcaifaceimpl
00017 {
00018 
00029 // template<class ProviderType, class ProviderPrxType, class ConsumerType, class ConsumerPrxType, class ObjectType>
00030 template<class ProviderType, 
00031          class ConsumerType, 
00032          class ObjectType,
00033          class ConsumerTypeIType=ConsumerTypeI<ConsumerType,ObjectType> >
00034 class PrintingConsumerImpl : 
00035         public ConsumerImpl<ProviderType,ConsumerType,ObjectType>
00036 //         public ConsumerImpl<ProviderType,ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>
00037 {
00038 // using ConsumerImpl<ProviderType,ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>::context_;
00039 using ConsumerImpl<ProviderType,ConsumerType,ObjectType>::context_;
00040 public:
00043     PrintingConsumerImpl( const orcaice::Context &context, int recurse=1000, int expand=-1 ) :
00044         ConsumerImpl<ProviderType,ConsumerType,ObjectType,ConsumerTypeIType>(context), 
00045 //         ConsumerImpl<ProviderType,ProviderPrxType,ConsumerType,ConsumerPrxType,ObjectType>(context), 
00046         recurse_(recurse),
00047         expand_(expand) {}
00048 
00050     virtual void dataEvent( const ObjectType& data ) 
00051     {
00052         std::cout << "PrintingConsumerImpl::dataEvent() start" << std::endl;
00053         context_.tracer().info( ifaceutil::toString(data,recurse_,expand_) ); 
00054     }
00055 private:
00056     int recurse_;
00057     int expand_;
00058 };
00059 
00060 } // namespace
00061 
00062 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5