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

 

         

ptrnotify.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 ORCAICE_ICE_PTR_NOTIFY_H
00012 #define ORCAICE_ICE_PTR_NOTIFY_H
00013 
00014 #include <gbxsickacfr/gbxiceutilacfr/notify.h>
00015 
00016 #include <Ice/Object.h>
00017 
00018 namespace orcaice
00019 {
00020 
00029 template<class Type>
00030 class PtrNotify : public gbxiceutilacfr::Notify<Type>
00031 {
00032     using gbxiceutilacfr::Notify<Type>::handler_;
00033     
00034 protected:
00035     virtual void internalSet( const Type & obj );
00036 };
00037 
00038 template<class Type>
00039 void PtrNotify<Type>::internalSet( const Type & obj )
00040 {
00041     Ice::ObjectPtr clone = obj->ice_clone();
00042     const Type subclass = Type::dynamicCast( clone );
00043     
00044     handler_->handleData( subclass );
00045 }
00046 
00047 } // end namespace
00048 
00049 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5