INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

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::CameraLogWriter, orcalogfactory::CpuLogWriter, orcalogfactory::DriveBicycleLogWriter, orcalogfactory::GpsLogWriter, orcalogfactory::ImageLogWriter, orcalogfactory::ImuLogWriter, orcalogfactory::LaserScanner2dLogWriter, orcalogfactory::Localise2dLogWriter, orcalogfactory::Localise3dLogWriter, orcalogfactory::MultiCameraLogWriter, orcalogfactory::Odometry2dLogWriter, orcalogfactory::Odometry3dLogWriter, orcalogfactory::PathFollower2dLogWriter, orcalogfactory::PolarFeature2dLogWriter, orcalogfactory::PowerLogWriter, orcalogfactory::RangeScanner2dLogWriter, 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.

References file_, orcalog::openAsciiFileForWriting(), and orcalog::openBinaryFileForWriting().

Referenced by init().

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