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::LogWriter Class Reference

Base class for all interface slaves Sets up a data file and registers with the MasterFileWriter. The individual log writers (e.g. LaserLogWriter) inherit from this class. More...

#include <logwriter.h>

Inherited by orcalogfactory::CpuLogWriter, orcalogfactory::DriveBicycleLogWriter, orcalogfactory::GpsLogWriter, orcalogfactory::ImuLogWriter, orcalogfactory::LaserScanner2dLogWriter, orcalogfactory::Localise2dLogWriter, orcalogfactory::Localise3dLogWriter, orcalogfactory::Odometry2dLogWriter, orcalogfactory::Odometry3dLogWriter, orcalogfactory::PolarFeature2dLogWriter, orcalogfactory::PowerLogWriter, and orcalogfactory::WifiLogWriter.

List of all members.

Public Member Functions

void init (const LogWriterInfo &logWriterInfo, MasterFileWriter &masterFileWriter)
 Creates data file (using createLogFile()).

Protected Member Functions

virtual void createLogFile (const std::string &filename, const std::string &format)
void writeReferenceToMasterFile (const orca::Time &arrivalTime)

Protected Attributes

std::ofstream * file_
 Handle to the output file.


Detailed Description

Base class for all interface slaves Sets up a data file and registers with the MasterFileWriter. The individual log writers (e.g. LaserLogWriter) inherit from this class.

Author:
Tobias Kaupp, Alex Brooks


Member Function Documentation

void orcalog::LogWriter::createLogFile const std::string &  filename,
const std::string &  format
[protected, virtual]
 

This version correctly handles two standard log file formats: ice : binary file ascii : ascii file This function does not catch exceptions which may result when creating a file. Derived classes which want to modify this behavior or need to handle other formats need to re-implement this function.

void orcalog::LogWriter::writeReferenceToMasterFile const orca::Time arrivalTime  )  [inline, protected]
 

Appends a record to the master file. Supplies the LogWriter ID and the data counter. Also prints out heartbeat message periodically.


The documentation for this class was generated from the following files:
 

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


Generated for Orca Robotics by  doxygen 1.4.5