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
1/*
2 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
3 * http://gearbox.sf.net/
4 * Copyright (c) 2004-2010 Tobias Kaupp
5 *
6 * This distribution is licensed to you under the terms described in
7 * the LICENSE file included in this distribution.
8 *
9 */
10
11#ifndef GBX_OCEANSERVER_H
12#define GBX_OCEANSERVER_H
13
14#include <memory>
15#include <gbxutilacfr/tracer.h>
16#include <gbxsmartbatteryacfr/oceanserverreader.h>
17#include <gbxsickacfr/gbxiceutilacfr/store.h>
18#include <gbxsickacfr/gbxiceutilacfr/safethread.h>
19
20using namespace std;
21
22namespace gbxsmartbatteryacfr {
23
33{
34public:
35
38 OceanServer( const std::string &port,
39 gbxutilacfr::Tracer &tracer);
40
44
46 bool haveData();
47
51 virtual void walk();
52
53private:
54
56 gbxutilacfr::Tracer& tracer_;
57 auto_ptr<gbxsmartbatteryacfr::OceanServerReader> reader_;
58
59 int exceptionCounter_;
60 std::string exceptionString_;
61
62};
63
64} //namespace
65
66#endif
67
68
69
A version of the Thread class which catches all possible exceptions.
Definition safethread.h:44
Thread-safe storage for a single data objects.
Definition store.h:43
Definition oceanserversystem.h:27
Definition oceanserver.h:33
OceanServer(const std::string &port, gbxutilacfr::Tracer &tracer)
Definition oceanserver.cpp:20
bool haveData()
Returns true if there is some non-empty data available.
Definition oceanserver.cpp:100
virtual void walk()
Definition oceanserver.cpp:31
void getData(gbxsmartbatteryacfr::OceanServerSystem &data)
Definition oceanserver.cpp:93
Local and remote tracing.
Definition tracer.h:112
SmartBattery library.
Definition gbxsmartbatteryacfr/exceptions.h:16
 

Generated for GearBox by  doxygen 1.4.5