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

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

class PSA916;

#define PSA916LogName "psa916log"

/*
CLASS 
PSA916Log

DESCRIPTION
Logs PSA916 data through the DataLogWriter interface.

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

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

  [...other stuff...]

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

</pre>
AUTHOR
John O'Rieffel
*/
class PSA916Log : public DataLogWriter {

public:

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

  ~PSA916Log();

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 PSA916 
  // object.
  PSA916 *_psa916;


private:
  
  DoubleData *_range;
};

#endif
