INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

oceanserver.h

00001 /*
00002  * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
00003  *               http://gearbox.sf.net/
00004  * Copyright (c) 2004-2010 Tobias Kaupp
00005  *
00006  * This distribution is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef GBX_OCEANSERVER_H
00012 #define GBX_OCEANSERVER_H
00013 
00014 #include <memory>
00015 #include <gbxutilacfr/tracer.h>
00016 #include <gbxsmartbatteryacfr/oceanserverreader.h>
00017 #include <gbxsickacfr/gbxiceutilacfr/store.h>
00018 #include <gbxsickacfr/gbxiceutilacfr/safethread.h>
00019 
00020 using namespace std;
00021 
00022 namespace gbxsmartbatteryacfr {
00023 
00032 class OceanServer : public gbxiceutilacfr::SafeThread
00033 {    
00034 public:
00035     
00038     OceanServer( const std::string      &port,
00039                  gbxutilacfr::Tracer    &tracer);
00040 
00043     void getData( gbxsmartbatteryacfr::OceanServerSystem &data );
00044 
00046     bool haveData();
00047 
00051     virtual void walk();
00052     
00053 private:
00054 
00055     gbxiceutilacfr::Store<gbxsmartbatteryacfr::OceanServerSystem> dataStore_;
00056     gbxutilacfr::Tracer& tracer_;
00057     auto_ptr<gbxsmartbatteryacfr::OceanServerReader> reader_;
00058     
00059     int exceptionCounter_;
00060     std::string exceptionString_;
00061     
00062 };
00063 
00064 } //namespace
00065 
00066 #endif
00067 
00068 
00069 
 

Generated for GearBox by  doxygen 1.4.5