INTRODUCTION
Overview
Download and Install
Documentation
Publications
REPOSITORY
Libraries
DEVELOPER
Dev Guide
Dashboard
PEOPLE
Contributors
Users
Project
Download
Mailing lists
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
src
gbxsmartbatteryacfr
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
20
using namespace
std;
21
22
namespace
gbxsmartbatteryacfr {
23
32
class
OceanServer
:
public
gbxiceutilacfr::SafeThread
33
{
34
public
:
35
38
OceanServer
(
const
std::string &port,
39
gbxutilacfr::Tracer
&tracer);
40
43
void
getData(
gbxsmartbatteryacfr::OceanServerSystem
&data );
44
46
bool
haveData();
47
51
virtual
void
walk();
52
53
private
:
54
55
gbxiceutilacfr::Store<gbxsmartbatteryacfr::OceanServerSystem>
dataStore_;
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
Generated for GearBox by
1.4.5