INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
oceanserverparser.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_PARSER_H
12 #define GBX_OCEANSERVER_PARSER_H
13 
14 #include <map>
15 #include <gbxutilacfr/tracer.h>
16 #include <gbxsmartbatteryacfr/oceanserversystem.h>
17 
18 namespace gbxsmartbatteryacfr
19 {
20 
27 {
28 public:
29 
31 
34  void parse( std::vector<std::string> &stringList,
35  OceanServerSystem &batterySystem );
36 
38  bool atBeginningOfRecord( const std::string &line );
39 
40 private:
41 
42  gbxutilacfr::Tracer &tracer_;
43 
44  // parsing functions
45  void parseFields( std::vector<std::string> &fields,
46  OceanServerSystem &batterySystem );
47 
48  void parseSystemData( const std::map<std::string,std::string> &keyValuePairs,
49  OceanServerSystem &batterySystem);
50 
51  void parseControllerData( const std::map<std::string,std::string> &keyValuePairs,
52  OceanServerSystem &batterySystem);
53 
54  void parseSingleBatteryData( const std::map<std::string,std::string> &keyValuePairs,
55  unsigned int batteryNum,
56  OceanServerSystem &batterySystem);
57 
58 };
59 
60 
61 } // namespace
62 
63 #endif
void parse(std::vector< std::string > &stringList, OceanServerSystem &batterySystem)
Definition: oceanserverparser.cpp:271
bool atBeginningOfRecord(const std::string &line)
Checks whether the passed string (one line) is the first line of the record.
Definition: oceanserverparser.cpp:257
Local and remote tracing.
Definition: tracer.h:111
Definition: oceanserverparser.h:26
SmartBattery library.
Definition: gbxsmartbatteryacfr/exceptions.h:16
Definition: oceanserversystem.h:26
 

Generated for GearBox by  doxygen 1.4.5