orca-robotics


INTRODUCTION
Overview
Download and Install
Documentation

REPOSITORY
Interfaces
Drivers
Libraries
Utilities
Software Map

DEVELOPER
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

myimplementation.h

00001 #ifndef HYDRO_DLLTEST_MY_IMPLEMENTATION_H
00002 #define HYDRO_DLLTEST_MY_IMPLEMENTATION_H
00003 
00004 #include "interface.h"
00005 #include <hydroportability/sharedlib.h>
00006 
00007 namespace dlltest {
00008 
00009 class SOEXPORT MyImplementation : public Interface
00010 {
00011 public:
00012     MyImplementation( int num ) : number_(num) {};
00013 
00014     virtual int number() const;
00015 
00016 private:
00017     int number_;
00018 };
00019 
00020 // Helper class to instantiate drivers
00021 class SOEXPORT MyFactory : public Factory
00022 {
00023 public:
00024     virtual Interface* create( int number ) const
00025     {
00026         return new MyImplementation( number );
00027     }
00028 };
00029 
00030 } // namespace
00031 
00032 // Used for dynamically loading driver
00033 extern "C" {
00034      SOEXPORT dlltest::Factory *createFactory();
00035 }
00036 
00037 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5