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

 

         

orcaifaceimpl::PrintingConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType > Class Template Reference

A convenience class for consumers with setData() operation. More...

#include <printingconsumerImpl.h>

Inherits ConsumerImpl< ProviderType, ConsumerType, ObjectType >.

List of all members.

Public Member Functions

 PrintingConsumerImpl (const orcaice::Context &context, int recurse=1000, int expand=-1)
virtual void dataEvent (const ObjectType &data)
 This callback simply prints it out to standard output.

Detailed Description

template<class ProviderType, class ConsumerType, class ObjectType, class ConsumerTypeIType = ConsumerTypeI<ConsumerType,ObjectType>>
class orcaifaceimpl::PrintingConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >

A convenience class for consumers with setData() operation.

When the data arrives it does one thing: puts out data as text through as an info message of Tracer.

Relies on the fact that the Consumer objects has only one operation to implement and it's called setData() and toString() function is implemented for the data type.


Constructor & Destructor Documentation

template<class ProviderType , class ConsumerType , class ObjectType , class ConsumerTypeIType = ConsumerTypeI<ConsumerType,ObjectType>>
orcaifaceimpl::PrintingConsumerImpl< ProviderType, ConsumerType, ObjectType, ConsumerTypeIType >::PrintingConsumerImpl ( const orcaice::Context context,
int  recurse = 1000,
int  expand = -1 
) [inline]

Constructor. The optinal parameter recurse specifies the level of detail printed out to cout when new data arrives.


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

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


Generated for Orca Robotics by  doxygen 1.4.5