INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
oceanserver.h00001 /* 00002 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics 00003 * http://gearbox.sf.net/ 00004 * Copyright (c) 2004-2008 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 00018 using namespace std; 00019 00020 namespace gbxsmartbatteryacfr { 00021 00029 class OceanServer 00030 { 00031 public: 00032 00035 OceanServer( const std::string &port, 00036 gbxutilacfr::Tracer &tracer); 00037 00041 const gbxsmartbatteryacfr::OceanServerSystem& getData(); 00042 00043 private: 00044 00045 gbxsmartbatteryacfr::OceanServerSystem data_; 00046 gbxutilacfr::Tracer& tracer_; 00047 auto_ptr<gbxsmartbatteryacfr::OceanServerReader> reader_; 00048 00049 int exceptionCounter_; 00050 00051 }; 00052 00053 } //namespace 00054 00055 #endif 00056 00057 00058 |