orca-robotics


INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

REPOSITORY
Interfaces
Components
Libraries
Utilities
Software Map

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard
Wiki
login/pass: orca/orca

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

orcalog/utils.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef ORCA_ORCALOG_UTILS_H
00012 #define ORCA_ORCALOG_UTILS_H
00013 
00014 #include <string>
00015 #include <IceUtil/IceUtil.h>
00016 
00017 namespace orcalog
00018 {
00019 
00023 void parseRequiredTag( const std::string& tag, std::string& type, std::string& suffix );
00024 
00026 std::string headerLine( const std::string& filename, 
00027                         const std::string& interfaceType, 
00028                         const std::string& format,
00029                         bool               enabled );
00030 
00032 void parseHeaderLine( const std::string& line, 
00033                         std::string& filename, 
00034                         std::string& interfaceType, 
00035                         std::string& format,
00036                         bool&        enabled );
00037 
00039 std::string endOfHeader();
00040 
00042 bool isEndOfHeader( const std::string& line );
00043 
00045 std::string dataLine( int seconds, int useconds, int id, int index );
00046 
00049 void parseDataLine( const std::string& line, int& seconds, int& useconds, int& id, int& index );
00050 
00052 inline IceUtil::Time iceUtilTime( int sec, int usec )
00053 {
00054     return IceUtil::Time::seconds(sec) + IceUtil::Time::microSeconds(usec);
00055 }
00056 
00057 std::string humanReadableTimeStamp();
00058 
00059 } //namespace
00060 
00061 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5