/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : NavigationLog.h                                               */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#ifndef _PS8000LOG_H
#define _PS8000LOG_H

#include "DataLogWriter.h"
#include "DoubleData.h"
#include "AngleData.h"
#include "FloatData.h"
#include "IntegerData.h"

class PS8000;

#define PS8000LogName "PS8000"

/*
CLASS 
PS8000Log

DESCRIPTION
Logs PS8000 data through the DataLogWriter interface.

To use this class, instantiate an instance within a PS8000 object
and periodically invoke the write() method:
<pre>

  PS8000Log *log = new PS8000Log(this, DataLog::AsciiFormat);

  [...other stuff...]

  // Log the data
  log->write();

</pre>
AUTHOR
Tom O'Reilly
*/
class PS8000Log : public DataLogWriter {

public:

  ///////////////////////////////////////////////////////////////////
  // Constructor
  // [input] PS8000: PS8000 object. The setFields() method
  //         accesses this object as the source of the logged data.
  // [input] fileFormat: Specifies either DataLog::AsciiFormat or 
  //         DataLog::BinaryFormat.
  PS8000Log(PS8000 *PS8000);

  ~PS8000Log();

protected:

  ///////////////////////////////////////////////////////////////////
  // Set values in record array elements. This virtual method is called
  // by DataLogWriter::write()
  virtual void setFields();

  ///////////////////////////////////////////////////////////////////
  // setFields() accesses the data to be logged from this PS8000 
  // object.
  PS8000 *_PS8000;


private:
  //
  // As far as I can tell, it isn't possible to log an array. So, one at a time...
  //
  DoubleData *_rt1;
  DoubleData *_rt2;
  DoubleData *_rt3;
  DoubleData *_rt4;
  DoubleData *_rt5;
  DoubleData *_rt6;
  DoubleData *_rt7;
  DoubleData *_rt8;
  DoubleData *_rt9;
  DoubleData *_rt10;

};

#endif
