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

#include "DataLogWriter.h"
#include "DoubleData.h"

class PA200LR;

#define PA200LRLogName "PA200LRlog"

/*
CLASS 
PA200LRLog

DESCRIPTION
Logs PA200LR data through the DataLogWriter interface.

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

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

  [...other stuff...]

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

</pre>
AUTHOR
Rich Henthorn
*/
class PA200LRLog : public DataLogWriter {

public:

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

  ~PA200LRLog();

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 PA200LR 
  // object.
  PA200LR *_PA200LR;


private:
  
  DoubleData *_range;
};

#endif
