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 Project Download Mailing lists
|
libs/orcapublish/particle2dpublisher.h00001 #ifndef ORCAPUBLISH_PARTICLE2DPUBLISHER_H 00002 #define ORCAPUBLISH_PARTICLE2DPUBLISHER_H 00003 00004 #include <hydropublish/particle2dpublisher.h> 00005 #include <orcaifaceimpl/particle2d.h> 00006 00007 namespace orcapublish { 00008 00012 class Particle2dPublisher : public hydropublish::Particle2dPublisher 00013 { 00014 public: 00015 00016 Particle2dPublisher( const orcaice::Context &context, const std::string &name ); 00017 00018 void init() { impl_->initInterface(); } 00019 void localSetAndSend( const std::vector<hydropublish::Particle2d> &particles ); 00020 00021 private: 00022 00023 orcaifaceimpl::Particle2dImplPtr impl_; 00024 orca::Particle2dData orcaData_; 00025 }; 00026 00027 class Particle2dPublisherFactory : public hydropublish::Particle2dPublisherFactory 00028 { 00029 public: 00030 Particle2dPublisherFactory( const orcaice::Context &context ) 00031 : context_(context) 00032 {} 00033 00034 hydropublish::Particle2dPublisherPtr createPublisher( const std::string &name ) 00035 { return hydropublish::Particle2dPublisherPtr(new Particle2dPublisher( context_, name )); } 00036 00037 private: 00038 00039 orcaice::Context context_; 00040 }; 00041 00042 } 00043 00044 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)